mirror of https://github.com/django/django.git
Fixed #9014 -- Check that we really are processing a POST before processing
POST data. Some nice debugging form aaron to track this down. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9064 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
0aff292bcf
commit
36f8b8d687
|
@ -75,6 +75,10 @@ class ModPythonRequest(http.HttpRequest):
|
||||||
|
|
||||||
def _load_post_and_files(self):
|
def _load_post_and_files(self):
|
||||||
"Populates self._post and self._files"
|
"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'):
|
if 'content-type' in self._req.headers_in and self._req.headers_in['content-type'].startswith('multipart'):
|
||||||
self._raw_post_data = ''
|
self._raw_post_data = ''
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue