Loading classes/Locator.php +2 −1 Original line number Diff line number Diff line Loading @@ -27,7 +27,8 @@ class Locator { } public function getProtocol(): string { return (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on') ? 'https://' : 'http://'; return (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on') ? 'https://' : ( isset($_SERVER['HTTP_X_FORWARDED_PROTO']) ? $_SERVER['HTTP_X_FORWARDED_PROTO'] . '://' : 'http://'); } public function getBasePath(): string { Loading Loading
classes/Locator.php +2 −1 Original line number Diff line number Diff line Loading @@ -27,7 +27,8 @@ class Locator { } public function getProtocol(): string { return (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on') ? 'https://' : 'http://'; return (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on') ? 'https://' : ( isset($_SERVER['HTTP_X_FORWARDED_PROTO']) ? $_SERVER['HTTP_X_FORWARDED_PROTO'] . '://' : 'http://'); } public function getBasePath(): string { Loading