Skip to content

Commit ec393cb

Browse files
Merge pull request #109 from Simovative/ACFIVE-49931
ACFIVE-49931
2 parents 2fddafd + 93a78ef commit ec393cb

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/Emitter/Emitter.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,12 @@ private function emitHeaders(ResponseInterface $response): void
7979
header($statusHeader, true, $statusCode);
8080

8181
foreach ($response->getHeaders() as $header => $values) {
82-
foreach ($values as $value) {
83-
header(sprintf('%s: %s', $header, $value), true, $statusCode);
82+
if (is_array($values)) {
83+
foreach ($values as $value) {
84+
header(sprintf('%s: %s', $header, $value), true, $statusCode);
85+
}
86+
} else {
87+
header(sprintf('%s: %s', $header, $values), true, $statusCode);
8488
}
8589
}
8690
}

0 commit comments

Comments
 (0)