PhpGt / Http

PSR-7 HTTP message implementation.
https://www.php.gt/http
MIT License
1 stars 1 forks source link

Call Response::exitCallback on all setHeaders that should end early #172

Open g105b opened 2 years ago

g105b commented 2 years ago

The only header that should end early is Location as far as I can tell, but maybe there are more. Need to research before implementing.

g105b commented 2 years ago

In WebEngine's RequestHandler::forceTrailingSlashes() function, the Location header is set manually, along with the status code. This should prevent the request handler from executing any further, by calling the exit callback.