Skip to content

Commit

Permalink
missing return statement. tests green
Browse files Browse the repository at this point in the history
  • Loading branch information
rrpadilla committed Dec 9, 2018
1 parent 0032bab commit 69a6dcd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/TrustProxies.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,16 +113,16 @@ protected function getTrustedHeaderNames()
switch ($headers) {
case 'HEADER_X_FORWARDED_AWS_ELB':
case Request::HEADER_X_FORWARDED_AWS_ELB:
$headers = Request::HEADER_X_FORWARDED_AWS_ELB;
$this->headers = Request::HEADER_X_FORWARDED_AWS_ELB;
break;
case 'HEADER_FORWARDED':
case Request::HEADER_FORWARDED:
$headers = Request::HEADER_FORWARDED;
$this->headers = Request::HEADER_FORWARDED;
break;
default:
$headers = Request::HEADER_X_FORWARDED_ALL;
$this->headers = Request::HEADER_X_FORWARDED_ALL;
}

$this->headers = $headers;
return $this->headers;
}
}

0 comments on commit 69a6dcd

Please sign in to comment.