summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2017-03-04 15:45:31 +0100
committerThomas Lange <code@nerdmind.de>2017-03-04 15:45:31 +0100
commit80b320f0ca1d4dd1e8096f155334f0419a5733d4 (patch)
tree1d85be4977b2231ad704fa03b5a76729715c7311
parent7178db2be40264e9400f97e1afbf8608bc22768f (diff)
downloadblog-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.php2
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', '');