Ticket #4710: is_secure.diff

File is_secure.diff, 646 bytes (added by amax@…, 17 years ago)

patch

  • core/handlers/modpython.py

     
    4242
    4343    def is_secure(self):
    4444        # 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']
    4646
    4747    def _load_post_and_files(self):
    4848        "Populates self._post and self._files"
Back to Top