diff --git a/src/Illuminate/Foundation/Application.php b/src/Illuminate/Foundation/Application.php index 799a446de548..5f696d944553 100755 --- a/src/Illuminate/Foundation/Application.php +++ b/src/Illuminate/Foundation/Application.php @@ -1218,7 +1218,7 @@ public function isDownForMaintenance() public function abort($code, $message = '', array $headers = []) { if ($code == 404) { - throw new NotFoundHttpException($message); + throw new NotFoundHttpException($message, null, 0, $headers); } throw new HttpException($code, $message, null, $headers);