[RequestHandler] fixed request headers

This commit is contained in:
Fabien Potencier 2010-04-23 10:08:24 +02:00
parent 8d8afd992b
commit 27057fe6ae

View File

@ -759,7 +759,7 @@ class Request implements RequestInterface
$headers = array(); $headers = array();
foreach ($this->server->all() as $key => $value) foreach ($this->server->all() as $key => $value)
{ {
if (strtolower('HTTP_') === strtolower(substr($key, 0, 5))) if ('http_' === strtolower(substr($key, 0, 5)))
{ {
$headers[strtoupper(strtr(substr($key, 5), '-', '_'))] = $value; $headers[strtoupper(strtr(substr($key, 5), '-', '_'))] = $value;
} }