Skip to content

Commit

Permalink
🩹 Correctly split headers without leading whitespace (#402)
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelKr authored Sep 24, 2024
1 parent dce6d72 commit ef4a8a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Roots/Acorn/Application/Concerns/Bootable.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ protected function registerDefaultRoute(): void
{
Route::any('{any?}', fn () => tap(response(''), function (Response $response) {
foreach (headers_list() as $header) {
[$header, $value] = explode(': ', $header, 2);
[$header, $value] = explode(':', $header, 2);

if (! headers_sent()) {
header_remove($header);
Expand Down

0 comments on commit ef4a8a2

Please sign in to comment.