Skip to content

Commit

Permalink
fix: Response interface chaned "setHeader" to "addHttpHeader"
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanschuler committed Oct 5, 2023
1 parent c6884d1 commit a416127
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/Controller/GenericModelController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
[
Expand Down

0 comments on commit a416127

Please sign in to comment.