Skip to content

Commit

Permalink
Merge branch 'roots:main' into fse
Browse files Browse the repository at this point in the history
  • Loading branch information
dsturm committed Jan 30, 2024
2 parents 64d2328 + 87e9d84 commit eedd288
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Roots/Acorn/Bootloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,11 @@ protected function bootHttp(ApplicationContract $app)
protected function registerWordPressRoute(ApplicationContract $app)
{
$app->make('router')
->any('{any?}', fn () => tap(response(), function (Response $response) {
->any('{any?}', fn () => tap(response(''), function (Response $response) {
foreach (headers_list() as $header) {
header_remove($header);
if (! headers_sent()) {
header_remove($header);
}
$response->header(...explode(': ', $header));
}

Expand Down

0 comments on commit eedd288

Please sign in to comment.