zf-fr / zfr-eb-worker

ZfrEbWorker is a thin layer to simplify the usage of SQS queues and Elastic Beanstalk environments
MIT License
8 stars 2 forks source link

Add X-HANDLED-BY header #31

Closed danizord closed 8 years ago

danizord commented 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.

bakura10 commented 8 years ago

Isn't that a bug in Expressive? ôÔ

danizord commented 8 years ago

Nope, that's a tested and documented behavior, they assume that it is a 404 when no middleware changes the response.