From 72cdd4ee64e4c1f203794c76656fbb32a23fe4bc Mon Sep 17 00:00:00 2001
From: Darren Oh <darren@oh.name>
Date: Sat, 24 Oct 2015 19:24:07 -0400
Subject: [PATCH] Issue #2609076 by Darren Oh: Fixed install failure with HTTPS
 reverse proxy on newer browsers.

---
 core/includes/install.core.inc | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/core/includes/install.core.inc b/core/includes/install.core.inc
index 60ef2d7..2d80907 100644
--- a/core/includes/install.core.inc
+++ b/core/includes/install.core.inc
@@ -319,6 +319,10 @@ function install_begin_request($class_loader, &$install_state) {
 
   $site_path = DrupalKernel::findSitePath($request, FALSE);
   Settings::initialize(dirname(dirname(__DIR__)), $site_path, $class_loader);
+  $proxies = Settings::get('reverse_proxy_addresses', array());
+  if (count($proxies) > 0) {
+    $request::setTrustedProxies($proxies);
+  }
 
   // Ensure that procedural dependencies are loaded as early as possible,
   // since the error/exception handlers depend on them.
-- 
2.4.9 (Apple Git-60)

