Skip to content

Commit

Permalink
🩹 Correctly split headers without leading whitespace (#402)
Browse files Browse the repository at this point in the history
RafaelKr authored Sep 24, 2024

Verified

This commit was signed with the committer’s verified signature. The key has expired.
jsf9k Shane Frasier
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
@@ -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);

0 comments on commit ef4a8a2

Please sign in to comment.