Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #5604 -- Check for use of HTTPS by looking at the `wsgi.url_sch…

…eme` environment variable instead of the `HTTPS` environment variable since `wsgi.url_scheme` is required by the WSGI spec, while `HTTPS` is not. Thanks, ramiro.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@6428 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit f4bb24658bfbcf9dcf9fdda08ddf0e611ee22f8d 1 parent e8c9e3a
Gary Wilson Jr. authored September 27, 2007

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  django/core/handlers/wsgi.py
3  django/core/handlers/wsgi.py
@@ -105,7 +105,8 @@ def get_full_path(self):
105 105
         return '%s%s' % (self.path, self.environ.get('QUERY_STRING', '') and ('?' + self.environ.get('QUERY_STRING', '')) or '')
106 106
 
107 107
     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'
109 110
 
110 111
     def _load_post_and_files(self):
111 112
         # Populates self._post and self._files

0 notes on commit f4bb246

Please sign in to comment.
Something went wrong with that request. Please try again.