[RequestHandler] changed server object in Request to be a simple ParameterBag

This commit is contained in:
Fabien Potencier 2010-05-05 10:24:34 +02:00
parent 5d77229aca
commit 04da781529
1 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ class Request
$this->path = new ParameterBag(null !== $path ? $path : array());
$this->cookies = new ParameterBag(null !== $cookies ? $cookies : $_COOKIE);
$this->files = new ParameterBag($this->convertFileInformation(null !== $files ? $files : $_FILES));
$this->server = new HeaderBag(null !== $server ? $server : $_SERVER, 'request');
$this->server = new ParameterBag(null !== $server ? $server : $_SERVER);
$this->headers = new HeaderBag($this->initializeHeaders(), 'request');
$this->languages = null;
@ -793,7 +793,7 @@ class Request
$headers = array();
foreach ($this->server->all() as $key => $value)
{
if ('http-' === strtolower(substr($key, 0, 5)))
if ('http_' === strtolower(substr($key, 0, 5)))
{
$headers[substr($key, 5)] = $value;
}