mirror of
https://github.com/grocy/grocy.git
synced 2026-03-28 07:39:25 +01:00
Return API exceptions with proper content type
This commit is contained in:
parent
e93f58916e
commit
747660d909
|
|
@ -48,7 +48,7 @@ class ExceptionController extends BaseApiController
|
|||
];
|
||||
}
|
||||
|
||||
return $this->ApiResponse($response->withStatus($status), $data);
|
||||
return $this->ApiResponse($response->withStatus($status)->withHeader('Content-Type', 'application/json'), $data);
|
||||
}
|
||||
|
||||
if ($exception instanceof HttpNotFoundException)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user