diff --git a/Bridges/HttpKernel.php b/Bridges/HttpKernel.php index 1bd0b88..1177792 100644 --- a/Bridges/HttpKernel.php +++ b/Bridges/HttpKernel.php @@ -276,8 +276,8 @@ protected function mapResponse(SymfonyResponse $syResponse, $stdout='') $cookies[] = $cookieHeader; } - if (isset($headers['Set-Cookie'])) { - $headers['Set-Cookie'] = array_merge((array)$headers['Set-Cookie'], $cookies); + if (isset($nativeHeaders['Set-Cookie'])) { + $headers['Set-Cookie'] = array_merge((array)$nativeHeaders['Set-Cookie'], $cookies); } else { $headers['Set-Cookie'] = $cookies; }