@@ -39,13 +39,13 @@ import django.template.loader
from django.core.handlers.modpython import *
del handler
class ModPythonRequest(ModPythonRequest):
def is_secure(self):
return self._req.get_options().has_key('HTTPS') and self._req.get_options()['HTTPS'] == 'on'
return 'HTTPS' in self._req.get_options() and self._req.get_options()['HTTPS'] == 'on'
class ModPythonHandler(BaseHandler):
request_class = ModPythonRequest
def __call__(self, req):
# mod_python fakes the environ, and thus doesn't process SetEnv. This fixes that