diff --git a/lib/statusnet.php b/lib/statusnet.php
index 301994508d..33bf32b10e 100644
--- a/lib/statusnet.php
+++ b/lib/statusnet.php
@@ -377,7 +377,7 @@ class StatusNet
     static function isHTTPS()
     {
         // There are some exceptions to this; add them here!
-        return $_SERVER['HTTPS'];
+        return !empty($_SERVER['HTTPS']);
     }
 }