Fix isHTTPS to work correctly for Cherokee and IIS
This commit is contained in:
parent
a988e2e97b
commit
cc0038d47c
@ -377,7 +377,11 @@ class StatusNet
|
||||
static function isHTTPS()
|
||||
{
|
||||
// There are some exceptions to this; add them here!
|
||||
return !empty($_SERVER['HTTPS']);
|
||||
if(empty($_SERVER['HTTPS'])) {
|
||||
return false;
|
||||
} else {
|
||||
return $_SERVER['HTTPS'] !== 'off';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user