Skip to content

Commit

Permalink
Add headers (#46780)
Browse files Browse the repository at this point in the history
* add headers

* Update Application.php

---------

Co-authored-by: Taylor Otwell <[email protected]>
  • Loading branch information
sobhan-m94 and taylorotwell authored Apr 14, 2023
1 parent 81c61bd commit d95f865
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Foundation/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d95f865

Please sign in to comment.