Skip to content

Commit

Permalink
merged branch pborreli/patch-9 (PR #7943)
Browse files Browse the repository at this point in the history
This PR was merged into the master branch.

Discussion
----------

[HttpFoundation] Reverted a part of #7931

refs: #7931

Commits
-------

09c2114 Reverted a part of f5e7f24
  • Loading branch information
fabpot committed May 6, 2013
2 parents 31a35aa + 09c2114 commit 6604ff8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/HttpFoundation/ServerBag.php
Expand Up @@ -30,7 +30,7 @@ public function getHeaders()
$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_
Expand Down

0 comments on commit 6604ff8

Please sign in to comment.