Skip to content

Commit

Permalink
Added case insensitive cookie header detection
Browse files Browse the repository at this point in the history
  • Loading branch information
mapogolions committed Aug 10, 2019
1 parent 2fbb459 commit c6b9b5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Slim/ResponseEmitter.php
Expand Up @@ -58,7 +58,7 @@ public function emit(ResponseInterface $response): void
private function emitHeaders(ResponseInterface $response): void
{
foreach ($response->getHeaders() as $name => $values) {
$first = $name !== 'Set-Cookie';
$first = strtolower($name) !== 'set-cookie';
foreach ($values as $value) {
$header = sprintf('%s: %s', $name, $value);
header($header, $first);
Expand Down

0 comments on commit c6b9b5f

Please sign in to comment.