Skip to content

Commit 636ecf2

Browse files
authored
Merge pull request #143 from n3o77/master
Make sure header keys are always lowercase
2 parents 47c4e4a + 2275a3c commit 636ecf2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/CurlResponse.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ private function parse($response)
2727
foreach (\explode("\r\n", $headers) as $header) {
2828
$pair = \explode(': ', $header, 2);
2929
if (isset($pair[1])) {
30-
$this->headers[$pair[0]] = $pair[1];
30+
$headerKey = strtolower($pair[0]);
31+
$this->headers[$headerKey] = $pair[1];
3132
}
3233
}
3334
} else {

0 commit comments

Comments
 (0)