merged branch pborreli/patch-9 (PR #7943)
This PR was merged into the master branch. Discussion ---------- [HttpFoundation] Reverted a part of #7931 refs: #7931 Commits -------09c2114
Reverted a part off5e7f24819
This commit is contained in:
commit
6604ff8719
@ -30,7 +30,7 @@ class ServerBag extends ParameterBag
|
||||
$headers = array();
|
||||
$contentHeaders = array('CONTENT_LENGTH' => true, 'CONTENT_MD5' => true, 'CONTENT_TYPE' => true);
|
||||
foreach ($this->parameters as $key => $value) {
|
||||
if ('HTTP_' === substr($key, 0, 5)) {
|
||||
if (0 === strpos($key, 'HTTP_')) {
|
||||
$headers[substr($key, 5)] = $value;
|
||||
}
|
||||
// CONTENT_* are not prefixed with HTTP_
|
||||
|
Reference in New Issue
Block a user