Reverted a part of f5e7f24819

This commit is contained in:
Pascal Borreli 2013-05-06 10:11:45 +02:00
parent e0d2065344
commit 09c21148be

View File

@ -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_