Skip to content

Commit 2275a3c

Browse files
committed
[BUG] make sure header keys are always lowercase
1 parent 47c4e4a commit 2275a3c

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)