From 73cc493d325c205acebd7160b747df963c5060de Mon Sep 17 00:00:00 2001
From: Daniel Goerz <daniel.goerz@posteo.de>
Date: Fri, 26 Oct 2018 19:27:44 +0200
Subject: [PATCH] [BUGFIX] Use correct type for header value
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

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>
---
 .../Classes/Controller/TypoScriptFrontendController.php       | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php b/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php
index 9baed1d258d1..590d8f28a529 100644
--- a/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php
+++ b/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php
@@ -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',
         ];
     }
     /********************************************
-- 
GitLab