Skip to content

Commit

Permalink
Fix: response() returning ResponseFactory instead of Response (#336)
Browse files Browse the repository at this point in the history
* Fix response() returning ResponseFactory instead of Response
  • Loading branch information
dsturm committed Jan 30, 2024
1 parent 9de4924 commit 87e9d84
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 87e9d84

Please sign in to comment.