Skip to content

Commit

Permalink
🔧 Set the response status code to the current value of `http_response…
Browse files Browse the repository at this point in the history
…_code()`
  • Loading branch information
Log1x committed Nov 6, 2024
1 parent 21d6df5 commit fc753f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Roots/Acorn/Application/Concerns/Bootable.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ protected function registerDefaultRoute(): void
$response->header('X-Powered-By', $this->version());
}

$response->setStatusCode(http_response_code());

$content = '';

$levels = ob_get_level();
Expand Down

0 comments on commit fc753f1

Please sign in to comment.