Skip to content

Commit b5fab3c

Browse files
committed
Issue #2618606 by dawehner, rbayliss: Update.php - Reverse proxy settings not used
(cherry picked from commit 46f0215)
1 parent 4157996 commit b5fab3c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/Drupal/Core/Update/UpdateKernel.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use Drupal\Core\DrupalKernel;
66
use Drupal\Core\Session\AnonymousUserSession;
77
use Drupal\Core\Site\Settings;
8+
use Drupal\Core\StackMiddleware\ReverseProxyMiddleware;
89
use Symfony\Cmf\Component\Routing\RouteObjectInterface;
910
use Symfony\Component\HttpFoundation\ParameterBag;
1011
use Symfony\Component\HttpFoundation\Request;
@@ -59,6 +60,7 @@ public function handle(Request $request, $type = self::MASTER_REQUEST, $catch =
5960

6061
// First boot up basic things, like loading the include files.
6162
$this->initializeSettings($request);
63+
ReverseProxyMiddleware::setSettingsOnRequest($request, Settings::getInstance());
6264
$this->boot();
6365
$container = $this->getContainer();
6466
/** @var \Symfony\Component\HttpFoundation\RequestStack $request_stack */

0 commit comments

Comments
 (0)