Skip to content

Commit 8f4d458

Browse files
committed
🩹 fix: Set status code with method to get correct status line
1 parent 29c2171 commit 8f4d458

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Roots/Acorn/Application/Concerns/Bootable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ protected function registerRequestHandler(
234234

235235
$response->headers->remove('cache-control');
236236

237-
add_action('send_headers', fn () => $response->sendHeaders(http_response_code()), 100);
237+
add_action('send_headers', fn () => $response->setStatusCode(http_response_code())->sendHeaders(), 100);
238238

239239
add_action('shutdown', function () use ($kernel, $request, $response) {
240240
$response->sendContent();

0 commit comments

Comments
 (0)