Actions
Bug #68670
closedDo not let legacy code take precedence over HTTP headers
Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2015-07-31
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Stabilization Sprint
Description
The code to not overwrite regular headers set by PSR-7 response
is obsolete and should be removed. Legacy code does not have access
to the response object, thus the PSR-7 header list would always be empty.
We also do not want to give legacy code precedence here if our code
explicitly sets some headers.
Also make sure that, if legacy code added some headers, which are also
set in the response object, that the headers are not additionally added
but override the legacy headers.
The only exception is the status code header, which we must allow to
be changed from legacy code for the time being.
Actions