[BUGFIX] Use correct type for header value 23/58723/4
authorDaniel Goerz <daniel.goerz@posteo.de>
Fri, 26 Oct 2018 17:27:44 +0000 (19:27 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Sat, 27 Oct 2018 11:55:26 +0000 (13:55 +0200)
Resolves: #86758
Releases: master
Change-Id: Ia0803d4ba68e0913478e4cfa9173cce5e1c5b5db
Reviewed-on: https://review.typo3.org/58723
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Joerg Kummer <typo3@enobe.de>
Tested-by: Joerg Kummer <typo3@enobe.de>
Reviewed-by: Jürgen Heym <juergen.heym@hof-university.de>
Tested-by: Jürgen Heym <juergen.heym@hof-university.de>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php

index 9baed1d..590d8f2 100644 (file)
@@ -4029,7 +4029,7 @@ class TypoScriptFrontendController implements LoggerAwareInterface
         foreach ($additionalHeaders as $headerConfig) {
             list($header, $value) = GeneralUtility::trimExplode(':', $headerConfig['header'], false, 2);
             if ($headerConfig['statusCode']) {
-                $response = $response->withStatus($headerConfig['statusCode']);
+                $response = $response->withStatus((int)$headerConfig['statusCode']);
             }
             if ($headerConfig['replace']) {
                 $response = $response->withHeader($header, $value);
@@ -4241,7 +4241,7 @@ class TypoScriptFrontendController implements LoggerAwareInterface
             'Retry-after' => '3600',
             'Pragma' => 'no-cache',
             'Cache-control' => 'no-cache',
-            'Expire' => 0,
+            'Expires' => '0',
         ];
     }
     /********************************************