Skip to content

Commit 537a2c6

Browse files
acasademontandig
authored andcommitted
Fix bad empty headers (#159)
1 parent 057f02e commit 537a2c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Bridges/HttpKernel.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ protected function mapResponse(SymfonyResponse $syResponse, $stdout='')
277277

278278
if (isset($nativeHeaders['Set-Cookie'])) {
279279
$headers['Set-Cookie'] = array_merge((array)$nativeHeaders['Set-Cookie'], $cookies);
280-
} else {
280+
} elseif ($cookies) {
281281
$headers['Set-Cookie'] = $cookies;
282282
}
283283

0 commit comments

Comments
 (0)