Skip to content

Commit 00c09ec

Browse files
authored
Removed $_SERVER['HTTP_ACCEPT'] value. (#6599)
1 parent cc0f006 commit 00c09ec

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎src/Boot/DrupalBoot8.php‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,11 @@ public function bootstrapDrupalSiteValidate(BootstrapManager $manager): bool
106106
] + $_SERVER;
107107
$request = Request::create($uri, 'GET', [], [], [], $server);
108108
$request->overrideGlobals();
109+
110+
// Remove HTTP_ACCEPT, as things such as the Symfony var-dumper will
111+
// incorrectly sniff that we're in a browser request.
112+
unset($_SERVER['HTTP_ACCEPT']);
113+
109114
$this->setRequest($request);
110115
return true;
111116
}

0 commit comments

Comments
 (0)