Explorar el Código

[RequestHandler] fixed request headers

Fabien Potencier hace 15 años
padre
commit
8d8afd992b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/Symfony/Components/RequestHandler/Request.php

+ 1 - 1
src/Symfony/Components/RequestHandler/Request.php

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