Skip to content

Commit

Permalink
[RequestHandler] changed server object in Request to be a simple Para…
Browse files Browse the repository at this point in the history
…meterBag
  • Loading branch information
fabpot committed May 5, 2010
1 parent 5d77229 commit 04da781
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Symfony/Components/RequestHandler/Request.php
Expand Up @@ -75,7 +75,7 @@ public function initialize(array $query = null, array $request = null, array $pa
$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;
Expand Down Expand Up @@ -793,7 +793,7 @@ protected function initializeHeaders()
$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;
}
Expand Down

0 comments on commit 04da781

Please sign in to comment.