Closed danizord closed 8 years ago
Zend Expressive returns 404 if $response object is not changed at the end of pipeline, so I'm adding this header to make sure that we don't return a 404 if no listener touches the response.
$response
Isn't that a bug in Expressive? ôÔ
Nope, that's a tested and documented behavior, they assume that it is a 404 when no middleware changes the response.
Zend Expressive returns 404 if
$response
object is not changed at the end of pipeline, so I'm adding this header to make sure that we don't return a 404 if no listener touches the response.