mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 04:12:59 +00:00
Return API exceptions with proper content type
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user