Skip to content

Commit

Permalink
Reverted a part of f5e7f24
Browse files Browse the repository at this point in the history
  • Loading branch information
pborreli committed May 6, 2013
1 parent e0d2065 commit 09c2114
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/HttpFoundation/ServerBag.php
Original file line number Diff line number Diff line change
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 09c2114

Please sign in to comment.