From a416127715d78086b70a24deaf0d6bbb454634be Mon Sep 17 00:00:00 2001 From: Stephan Schuler Date: Thu, 5 Oct 2023 15:09:02 +0200 Subject: [PATCH] fix: Response interface chaned "setHeader" to "addHttpHeader" --- Classes/Controller/GenericModelController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/Controller/GenericModelController.php b/Classes/Controller/GenericModelController.php index cc9a0d4..e851228 100644 --- a/Classes/Controller/GenericModelController.php +++ b/Classes/Controller/GenericModelController.php @@ -103,8 +103,8 @@ protected function mapErrorResult($status, $result): array protected function respondWithError(Error $error): string { - $this->response->setHeader('Content-Type', current($this->supportedMediaTypes)); - $this->response->setStatus(400); + $this->response->addHttpHeader('Content-Type', current($this->supportedMediaTypes)); + $this->response->setStatusCode(400); return json_encode( [