diff --git a/resources/DirectoryLister.php b/resources/DirectoryLister.php index 387e846..c7bdc7c 100644 --- a/resources/DirectoryLister.php +++ b/resources/DirectoryLister.php @@ -682,7 +682,11 @@ class DirectoryLister { // Get the server protocol if (!empty($_SERVER['HTTPS'])) { - $protocol = 'https://'; + if ($_SERVER['HTTPS']!=="off" { + $protocol = 'https://'; + } else { + $protocol = 'http://'; + } } else { $protocol = 'http://'; }