summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2018-12-13 22:36:13 (GMT)
committerAlex Pott2018-12-13 22:36:21 (GMT)
commite839a9726a0f9abb4e6776b56eabdce546a961ce (patch)
treec2cfa5338af176d27424c21477ee0ec2d48050c3
parent442ddf11f06dc35eb1e1f9cd1b70b792420ced0c (diff)
Issue #2618606 by dawehner, rbayliss: Update.php - Reverse proxy settings not used
(cherry picked from commit 46f02154f8cdded299bcbef743e78e02f5994b62)
-rw-r--r--core/lib/Drupal/Core/Update/UpdateKernel.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/lib/Drupal/Core/Update/UpdateKernel.php b/core/lib/Drupal/Core/Update/UpdateKernel.php
index 24a5755..2b74dab 100644
--- a/core/lib/Drupal/Core/Update/UpdateKernel.php
+++ b/core/lib/Drupal/Core/Update/UpdateKernel.php
@@ -5,6 +5,7 @@ namespace Drupal\Core\Update;
use Drupal\Core\DrupalKernel;
use Drupal\Core\Session\AnonymousUserSession;
use Drupal\Core\Site\Settings;
+use Drupal\Core\StackMiddleware\ReverseProxyMiddleware;
use Symfony\Cmf\Component\Routing\RouteObjectInterface;
use Symfony\Component\HttpFoundation\ParameterBag;
use Symfony\Component\HttpFoundation\Request;
@@ -59,6 +60,7 @@ class UpdateKernel extends DrupalKernel {
// First boot up basic things, like loading the include files.
$this->initializeSettings($request);
+ ReverseProxyMiddleware::setSettingsOnRequest($request, Settings::getInstance());
$this->boot();
$container = $this->getContainer();
/** @var \Symfony\Component\HttpFoundation\RequestStack $request_stack */