diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2006-10-25 02:55:51 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2006-10-25 02:55:51 +0000 |
| commit | 6fa3498d9f0a02f37aa602eaca1da6334076bd0e (patch) | |
| tree | 3fa8f2e08d3d107a1ffebe8f2443f434f98aa9bb /django/core/handlers/modpython.py | |
| parent | 3536f891087a98dbb7b449b30e109e9ba5a4e2e1 (diff) | |
Reverted [3919] because it requires mod_python 3.2.10+
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3933 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/core/handlers/modpython.py')
| -rw-r--r-- | django/core/handlers/modpython.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/django/core/handlers/modpython.py b/django/core/handlers/modpython.py index 43d2fd2a97..5fc41a048b 100644 --- a/django/core/handlers/modpython.py +++ b/django/core/handlers/modpython.py @@ -41,7 +41,8 @@ class ModPythonRequest(http.HttpRequest): return '%s%s' % (self.path, self._req.args and ('?' + self._req.args) or '') def is_secure(self): - return bool(self._req.is_https()) + # Note: modpython 3.2.10+ has req.is_https(), but we need to support previous versions + return self._req.subprocess_env.has_key('HTTPS') and self._req.subprocess_env['HTTPS'] == 'on' def _load_post_and_files(self): "Populates self._post and self._files" |
