diff options
Diffstat (limited to 'django/core/handlers/modpython.py')
| -rw-r--r-- | django/core/handlers/modpython.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/django/core/handlers/modpython.py b/django/core/handlers/modpython.py index 8a5dba99a5..d1fdf5259d 100644 --- a/django/core/handlers/modpython.py +++ b/django/core/handlers/modpython.py @@ -75,6 +75,10 @@ class ModPythonRequest(http.HttpRequest): def _load_post_and_files(self): "Populates self._post and self._files" + if self.method != 'POST': + self._post, self._files = http.QueryDict('', encoding=self._encoding), datastructures.MultiValueDict() + return + if 'content-type' in self._req.headers_in and self._req.headers_in['content-type'].startswith('multipart'): self._raw_post_data = '' try: |
