Skip to content

Commit

Permalink
TASK (Neos 7 Update): adjust to new HTTP Header API
Browse files Browse the repository at this point in the history
  • Loading branch information
skurfuerst committed Apr 13, 2021
1 parent 669ea98 commit c5a020d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Classes/Controller/Backend/ContentUpgradeAjaxController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit c5a020d

Please sign in to comment.