Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

FinalHandler should return new responses #12

Commits on Jun 24, 2015

  1. FinalHandler should return new responses

    If no error is present, and the response passed on invocation is
    different than the response at initialization, the `FinalHandler` should
    return that response intact.
    
    This allows middleware to create a response, but pass it on to `$next()`
    for post-processing further up the chain. In particular, this is useful
    for things like routing middleware, so as to allow for application-wide
    concerns such as logging, finalizing sessions, etc., without requiring
    onion-style middleware for these behaviors.
    weierophinney committed Jun 24, 2015
    Configuration menu
    Copy the full SHA
    0983f98 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e13dd06 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ab9ca14 View commit details
    Browse the repository at this point in the history

Commits on Jun 25, 2015

  1. Return the original response if the body size has changed.

    - Per @ezimuel, when the original response body has been written to,
      `FinalHandler` was still returning the 404 response. This patch
      ensures that if the body size changes, the response will still be
      returned.
    weierophinney committed Jun 25, 2015
    Configuration menu
    Copy the full SHA
    69057f1 View commit details
    Browse the repository at this point in the history