Issue Bug Closed

#79043PSR-7 non 302 redirects do not work

Benjamin Franzke 12/20/16, 09:25 updated 10/02/18, 11:04

Description

If a Response object sets a status code other than 302 and adds a Location header,
Core\Bootstrap::sendResponse will always sent a 302 response code, instead of the defined one.

This is because the php header() function implicitly sets the response code to 302 if a location header is sent:
http://php.net/manual/en/function.header.php#refsect1-function.header-parameters

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.