Skip to content

Commit 6244810

Browse files
committed
Fix issue if default site is not IDP.
1 parent 89be9d0 commit 6244810

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

lib/DrupalHelper.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,7 @@ class DrupalHelper
1919
public function bootDrupal($drupalRoot)
2020
{
2121
$autoloader = require_once $drupalRoot . '/autoload.php';
22-
// Inherit the current request's HTTP host to respect trusted hosts
23-
// settings.
24-
$current_request = Request::createFromGlobals();
25-
$server = [
26-
'HTTP_HOST' => $current_request->getHost(),
27-
];
28-
$request = new Request([], [], [], [], [], $server);
22+
$request = Request::createFromGlobals();
2923
$originalDir = getcwd();
3024
chdir($drupalRoot);
3125
$kernel = DrupalKernel::createFromRequest($request, $autoloader, 'prod', true, $drupalRoot);

0 commit comments

Comments
 (0)