bug fix for #1334
This commit is contained in:
parent
594ba12ea3
commit
ef8ac0ca5c
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ if (!defined('JSON_PRETTY_PRINT')) {
|
|||
|
||||
// Domain and protocol
|
||||
define('DOMAIN', $_SERVER['HTTP_HOST']);
|
||||
if ( !empty($_SERVER['HTTPS']) ||
|
||||
if ((!empty($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] !== 'off')) ||
|
||||
(!empty($_SERVER['HTTP_X_FORWARDED_PROTO']) && ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')) ||
|
||||
(!empty($_SERVER['HTTP_X_FORWARDED_SSL']) && ($_SERVER['HTTP_X_FORWARDED_SSL'] == 'on')) ) {
|
||||
define('PROTOCOL', 'https://');
|
||||
|
|
Loading…
Reference in a new issue