mirror of
https://github.com/grocy/grocy.git
synced 2026-04-08 13:46:14 +02: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)
|
if ($exception instanceof HttpNotFoundException)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user