Skip to content

Commit

Permalink
qa: revert variable name change
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Weier O'Phinney <[email protected]>
  • Loading branch information
weierophinney committed May 18, 2021
1 parent 3c483b5 commit 119a9cf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ public function getHeaders() : array
/**
* {@inheritdoc}
*/
public function getHeader($name) : array
public function getHeader($header) : array
{
if (! $this->hasHeader($name)) {
if (strtolower($name) === 'host'
if (! $this->hasHeader($header)) {
if (strtolower($header) === 'host'
&& $this->uri->getHost()
) {
return [$this->getHostFromUri()];
Expand All @@ -63,8 +63,8 @@ public function getHeader($name) : array
return [];
}

$name = $this->headerNames[strtolower($name)];
$header = $this->headerNames[strtolower($header)];

return $this->headers[$name];
return $this->headers[$header];
}
}

0 comments on commit 119a9cf

Please sign in to comment.