Skip to content

Commit

Permalink
Do not send status text in HTML error page
Browse files Browse the repository at this point in the history
  • Loading branch information
asika32764 committed Jul 15, 2017
1 parent 40733c7 commit 3e6b424
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Core/Error/ErrorManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ protected function respond($exception)
$code = 500;
}

$response = (new HtmlResponse($body))->withStatus($code, $exception->getMessage());
$response = (new HtmlResponse($body))->withStatus($code);

$this->app->server->getOutput()->respond($response);
}
Expand Down

0 comments on commit 3e6b424

Please sign in to comment.