Attempt to fix ssl detection

This commit is contained in:
Timothy Warren 2018-10-10 15:58:28 -04:00
parent 99aaf0303b
commit eaf3554611

View File

@ -88,7 +88,9 @@ class UrlGenerator extends RoutingBase {
}
$path = implode('/', $path_segments);
$scheme = (isset($_SERVER['HTTPS'])) ? 'https:' : 'http:';
$isHttps = $_SERVER['SERVER_PORT'] === '443' || isset($_SERVER['HTTPS']);
$scheme = ($isHttps) ? 'https:' : 'http:';
return "{$scheme}//{$this->host}/{$path}";
}