From 3e6b4244e61a0e09d68244b6cd916588ef2f4af8 Mon Sep 17 00:00:00 2001 From: Simon Asika Date: Sun, 16 Jul 2017 02:37:24 +0800 Subject: [PATCH] Do not send status text in HTML error page --- src/Core/Error/ErrorManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/Error/ErrorManager.php b/src/Core/Error/ErrorManager.php index 4a413565..5d62c932 100644 --- a/src/Core/Error/ErrorManager.php +++ b/src/Core/Error/ErrorManager.php @@ -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); }