[RequestHandler] fixed request headers

This commit is contained in:
Fabien Potencier 2010-04-23 10:08:24 +02:00
parent 8d8afd992b
commit 27057fe6ae
1 changed files with 1 additions and 1 deletions

View File

@ -759,7 +759,7 @@ class Request implements RequestInterface
$headers = array();
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;
}