From c5a020d6e8dd8e22190fa49147efc7495dd26e71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kurf=C3=BCrst?= Date: Tue, 13 Apr 2021 12:13:06 +0200 Subject: [PATCH] TASK (Neos 7 Update): adjust to new HTTP Header API --- .../Controller/Backend/ContentUpgradeAjaxController.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Classes/Controller/Backend/ContentUpgradeAjaxController.php b/Classes/Controller/Backend/ContentUpgradeAjaxController.php index dae2a69..9cfc278 100644 --- a/Classes/Controller/Backend/ContentUpgradeAjaxController.php +++ b/Classes/Controller/Backend/ContentUpgradeAjaxController.php @@ -71,8 +71,8 @@ class ContentUpgradeAjaxController extends ActionController */ public function migrateContentAction(int $oldLibraryId, int $libraryId, string $params = null) { - $this->response->setHeader('Cache-Control', 'no-cache'); - $this->response->setHeader('Content-Type', 'application/json'); + $this->response->addHttpHeader('Cache-Control', 'no-cache'); + $this->response->addHttpHeader('Content-Type', 'application/json'); // $params is null in the first request because the client does not yet know them if ($params !== null) { @@ -116,8 +116,8 @@ public function migrateContentAction(int $oldLibraryId, int $libraryId, string $ */ public function libraryInfoAction(string $libraryName, int $majorVersion, int $minorVersion) { - $this->response->setHeader('Cache-Control', 'no-cache'); - $this->response->setHeader('Content-Type', 'application/json'); + $this->response->addHttpHeader('Cache-Control', 'no-cache'); + $this->response->addHttpHeader('Content-Type', 'application/json'); $library = $this->libraryRepository->findOneByNameMajorVersionAndMinorVersion($libraryName, $majorVersion, $minorVersion);