Version 5.1 - All the GraphQL #32

Closed
timw4mail wants to merge 1160 commits from develop into master
Showing only changes of commit ca6954936f - Show all commits

View File

@ -88,7 +88,9 @@ class UrlGenerator extends RoutingBase {
} }
$path = implode('/', $path_segments); $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}"; return "{$scheme}//{$this->host}/{$path}";
} }