Skip to content

Commit

Permalink
🩹 Trim one optional leading space from headers (#405)
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelKr authored Oct 3, 2024
1 parent ef4a8a2 commit b72fd72
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] = preg_split("/:\s{0,1}/", $header, 2);

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

0 comments on commit b72fd72

Please sign in to comment.