diff --git a/controllers/ExceptionController.php b/controllers/ExceptionController.php index 7caa853e..0553c564 100644 --- a/controllers/ExceptionController.php +++ b/controllers/ExceptionController.php @@ -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)