diff --git a/www/modpythoncustom.py b/www/modpythoncustom.py index 80ad150ed890a3dca2a8d4b9c17ca94c051dc01a..f5e0a14e9641a9791df42ed79a93e976150e16d6 100644 --- a/www/modpythoncustom.py +++ b/www/modpythoncustom.py @@ -42,7 +42,7 @@ 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