Ticket #5604: wsgi_https.diff

File wsgi_https.diff, 655 bytes (added by Ramiro Morales, 17 years ago)
  • django/core/handlers/wsgi.py

    diff -r 01002b5b8bd7 django/core/handlers/wsgi.py
    a b class WSGIRequest(http.HttpRequest):  
    105105        return '%s%s' % (self.path, self.environ.get('QUERY_STRING', '') and ('?' + self.environ.get('QUERY_STRING', '')) or '')
    106106
    107107    def is_secure(self):
    108         return 'HTTPS' in self.environ and self.environ['HTTPS'] == 'on'
     108        return 'wsgi.url_scheme' in self.environ and self.environ['wsgi.url_scheme'] == 'https'
    109109
    110110    def _load_post_and_files(self):
    111111        # Populates self._post and self._files
Back to Top