Django

Code

Changeset 6428

Show
Ignore:
Timestamp:
09/27/07 11:57:55 (1 year ago)
Author:
gwilson
Message:

Fixed #5604 -- Check for use of HTTPS by looking at the wsgi.url_scheme environment variable instead of the HTTPS environment variable since wsgi.url_scheme is required by the WSGI spec, while HTTPS is not. Thanks, ramiro.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/core/handlers/wsgi.py

    r6235 r6428  
    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 \ 
     109            and self.environ['wsgi.url_scheme'] == 'https' 
    109110 
    110111    def _load_post_and_files(self):