Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #9014 -- Check that we really are processing a POST before proc…


POST data. Some nice debugging form aaron to track this down.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 36f8b8d6875cf6e5290afa736a8750e0e8c65129 1 parent 0aff292
@malcolmt malcolmt authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 django/core/handlers/
4 django/core/handlers/
@@ -75,6 +75,10 @@ def is_secure(self):
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 = ''
Please sign in to comment.
Something went wrong with that request. Please try again.