This commit is contained in:
Daniel Jost 2014-11-18 07:38:25 +00:00
commit 410f101d33

View file

@ -309,7 +309,7 @@ class Pico {
protected function get_protocol()
{
$protocol = 'http';
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off'){
if(isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) === 'on'){
$protocol = 'https';
}
return $protocol;