Skip to content
Permalink
Browse files

Address code review comments.

  • Loading branch information...
markstory committed Sep 24, 2016
1 parent 1d39a9d commit 4ae820d82fdaaa1edc1bab9da146340096b5273b
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/Network/Request.php
@@ -368,7 +368,7 @@ protected function _processPost($data)
parse_str($data, $data);
}
if ($this->hasHeader('X-Http-Method-Override')) {
$data['_method'] = $this->getHeaderLine('X-Http-Method_Override');
$data['_method'] = $this->getHeaderLine('X-Http-Method-Override');
$override = true;
}
$this->_environment['ORIGINAL_REQUEST_METHOD'] = $method;
@@ -1010,7 +1010,7 @@ public function getHeaders()
}
/**
* Check if a header exists in the request.
* Check if a header is set in the request.
*
* @param string $name The header you want to get (case-insensitive)
* @return bool Whether or not the header is defined.
@@ -1019,7 +1019,7 @@ public function hasHeader($name)
{
$name = $this->normalizeHeaderName($name);
return array_key_exists($name, $this->_environment);
return isset($this->_environment[$name]);
}
/**

0 comments on commit 4ae820d

Please sign in to comment.
You can’t perform that action at this time.