Skip to content

Commit 8e00127

Browse files
committed
fix: getHeaders must return headers in lower case
1 parent a706b5d commit 8e00127

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/SymfonyHttpResponseAdapter.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,11 @@ public function getHeaders(bool $throw = true): array
6969
if ($throw) {
7070
$this->throw();
7171
}
72-
return $this->response->getHeaders();
72+
$result = [];
73+
foreach($this->response->getHeaders() as $key => $values) {
74+
$result[strtolower($key)] = $values;
75+
}
76+
return $result;
7377
}
7478

7579
public function getContent(bool $throw = true): string

0 commit comments

Comments
 (0)