Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Changed django.core.handlers.modpython ModPythonRequest.is_secure() t…

…o use req.is_https(). Thanks, Jeremy Dunck

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3919 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 8a8472d3003c101160022845e93aad65bf47df29 1 parent c65cd1b
@adrianholovaty adrianholovaty authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/core/handlers/modpython.py
View
2  django/core/handlers/modpython.py
@@ -41,7 +41,7 @@ def get_full_path(self):
return '%s%s' % (self.path, self._req.args and ('?' + self._req.args) or '')
def is_secure(self):
- return self._req.subprocess_env.has_key('HTTPS') and self._req.subprocess_env['HTTPS'] == 'on'
+ return bool(self._req.is_https())
def _load_post_and_files(self):
"Populates self._post and self._files"
Please sign in to comment.
Something went wrong with that request. Please try again.