Ticket #4710: is_secure.diff
File is_secure.diff, 646 bytes (added by , 17 years ago) |
---|
-
core/handlers/modpython.py
42 42 43 43 def is_secure(self): 44 44 # Note: modpython 3.2.10+ has req.is_https(), but we need to support previous versions 45 return self._req.subprocess_env.has_key('HTTPS') and self._req.subprocess_env['HTTPS'] == 'on'45 return self._req.subprocess_env.has_key('HTTPS') and self._req.subprocess_env['HTTPS'].lower() in ['on', '1'] 46 46 47 47 def _load_post_and_files(self): 48 48 "Populates self._post and self._files"