diff options
Diffstat (limited to 'packages')
-rw-r--r-- | packages/pkginfo.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/pkginfo.php b/packages/pkginfo.php index 0939b8e..2081bbc 100644 --- a/packages/pkginfo.php +++ b/packages/pkginfo.php @@ -17,7 +17,10 @@ require_once BASE . "/lib/style.php"; $tld = explode('.', $_SERVER['HTTP_HOST']); end($tld); $tld = current($tld); - if (array_key_exists('HTTPS', $_SERVER) && ($_SERVER['HTTPS'] == 'on')) + if ((array_key_exists('HTTPS', $_SERVER) && + ($_SERVER['HTTPS'] == 'on')) || + (array_key_exists('HTTP_X_FORWARDED_PROTO', $_SERVER) && + ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https'))) $protocol = 'https'; else $protocol = 'http'; |