diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2006-10-24 16:07:39 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2006-10-24 16:07:39 +0000 |
| commit | 8a8472d3003c101160022845e93aad65bf47df29 (patch) | |
| tree | dd1bbd450191158d5d4104f826ffc24e894c0e5a /django/core/handlers/modpython.py | |
| parent | c65cd1be99d493b28d6ca48c27d69fed9ca80ecc (diff) | |
Changed django.core.handlers.modpython ModPythonRequest.is_secure() to use req.is_https(). Thanks, Jeremy Dunck
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3919 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/core/handlers/modpython.py')
| -rw-r--r-- | django/core/handlers/modpython.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/core/handlers/modpython.py b/django/core/handlers/modpython.py index bf759db068..0550a04d4a 100644 --- a/django/core/handlers/modpython.py +++ b/django/core/handlers/modpython.py @@ -41,7 +41,7 @@ class ModPythonRequest(http.HttpRequest): 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" |
