From 1683f107e72e59737fb389e4623782de0ef472c0 Mon Sep 17 00:00:00 2001 From: Markus Poerschke Date: Thu, 23 May 2019 09:22:19 +0200 Subject: [PATCH] [BUGFIX] Allow to send multiple HTTP headers with the same name HTTP allows to send multiple headers with the same name. Espacially this is needed for the "Set-Cookie" header to send more than one cookie at the same response. Resolves: #88420 Releases: master, 9.5 Change-Id: I4fd3573424e2ebf954cc5ebd043bd710226897fa Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/60800 Tested-by: TYPO3com Tested-by: Susanne Moog Tested-by: Andreas Fernandez Tested-by: Frank Naegler Reviewed-by: Susanne Moog Reviewed-by: Andreas Fernandez Reviewed-by: Frank Naegler --- typo3/sysext/core/Classes/Http/AbstractApplication.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/typo3/sysext/core/Classes/Http/AbstractApplication.php b/typo3/sysext/core/Classes/Http/AbstractApplication.php index 66627a75dbb..74fe660420e 100644 --- a/typo3/sysext/core/Classes/Http/AbstractApplication.php +++ b/typo3/sysext/core/Classes/Http/AbstractApplication.php @@ -74,7 +74,9 @@ abstract class AbstractApplication implements ApplicationInterface } foreach ($response->getHeaders() as $name => $values) { - header($name . ': ' . implode(', ', $values)); + foreach ($values as $value) { + header($name . ': ' . $value, false); + } } } $body = $response->getBody(); -- 2.20.1