diff options
author | Thomas Lange <code@nerdmind.de> | 2017-03-04 15:45:31 +0100 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2017-03-04 15:45:31 +0100 |
commit | 80b320f0ca1d4dd1e8096f155334f0419a5733d4 (patch) | |
tree | 1d85be4977b2231ad704fa03b5a76729715c7311 | |
parent | 7178db2be40264e9400f97e1afbf8608bc22768f (diff) | |
download | blog-80b320f0ca1d4dd1e8096f155334f0419a5733d4.tar.gz blog-80b320f0ca1d4dd1e8096f155334f0419a5733d4.tar.xz blog-80b320f0ca1d4dd1e8096f155334f0419a5733d4.zip |
Use environment variable "REQUEST_SCHEME" instead of "HTTPS" to determine the current used protocol.
-rw-r--r-- | core/configuration-example.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/configuration-example.php b/core/configuration-example.php index 80192cf..1416621 100644 --- a/core/configuration-example.php +++ b/core/configuration-example.php @@ -45,7 +45,7 @@ Application::set('TEMPLATE.LANG', Application::get('CORE.LANGUAGE')); #=============================================================================== # Protocol, hostname and path for this installation #=============================================================================== -Application::set('PATHINFO.PROT', isset($_SERVER['HTTPS']) ? 'https' : 'http'); +Application::set('PATHINFO.PROT', $_SERVER['REQUEST_SCHEME']); Application::set('PATHINFO.HOST', $_SERVER['HTTP_HOST']); Application::set('PATHINFO.BASE', ''); |