index : website | |
Archlinux32 website - obsolete | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | packages/pkginfo.php | 5 |
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'; |