Actions
Bug #79043
closedPSR-7 non 302 redirects do not work
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2016-12-20
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
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
Actions