Skip to content


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: 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/
2  django/core/handlers/
@@ -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.