Skip to content
Snippets Groups Projects
Commit e6f9dbc6 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

set json content type in error handler, fixes #1659

Closes #1659

Merge request !1068
parent 12f24e4f
No related branches found
No related tags found
No related merge requests found
......@@ -35,6 +35,7 @@ class ErrorHandler
}
$response = $this->app->getResponseFactory()->createResponse();
$response = $response->withHeader('Content-Type', 'application/json');
$response->getBody()->write($this->determinePayload($exception, $displayErrorDetails));
$code = $this->determineStatusCode($exception, $request->getMethod());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment