Merge pull request #207 from raptorz/master

fix get_protocol bug.
This commit is contained in:
picocms 2015-04-21 14:26:30 +01:00
commit fdd60d8f98

View file

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