Index: __init__.py
===================================================================
--- __init__.py (revision 3231)
+++ __init__.py (working copy)
@@ -83,7 +83,10 @@
         return location

     def is_secure(self):
-        return os.environ.get("HTTPS") == "on"
+        environ = os.environ.get("HTTPS")
+        if environ:
+            return environ == "on"
+        return self.META.get("HTTPS").lower() == "on"

     def is_ajax(self):
         return self.META.get('HTTP_X_REQUESTED_WITH') == 'XMLHttpRequest'
