Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Grigorchenko committed Aug 7, 2018
1 parent e24b20a commit 4a7bb6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ServerRequestFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public static function get($key, array $values, $default = null)
*/
public static function getHeader($header, array $headers, $default = null)
{
$header = strtolower($name);
$header = strtolower($header);
$headers = array_change_key_case($headers, CASE_LOWER);
if (array_key_exists($header, $headers)) {
$value = is_array($headers[$header]) ? implode(', ', $headers[$header]) : $headers[$header];
Expand Down

0 comments on commit 4a7bb6f

Please sign in to comment.