Skip to content

Commit

Permalink
Address code review comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Sep 24, 2016
1 parent 1d39a9d commit 4ae820d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Network/Request.php
Expand Up @@ -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;
Expand Down Expand Up @@ -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.
Expand All @@ -1019,7 +1019,7 @@ public function hasHeader($name)
{
$name = $this->normalizeHeaderName($name);

return array_key_exists($name, $this->_environment);
return isset($this->_environment[$name]);
}

/**
Expand Down

0 comments on commit 4ae820d

Please sign in to comment.