summaryrefslogtreecommitdiff
path: root/django/http/multipartparser.py
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2012-11-03 12:54:06 +0100
committerAymeric Augustin <aymeric.augustin@m4x.org>2012-11-03 13:07:02 +0100
commitb99707bdedbcbf832bd88eaefd488c841110a222 (patch)
tree6e963f4a064d22b245f05303ca42638dae647558 /django/http/multipartparser.py
parentf12fa7750c95cafa3a317be6a62ed3a2f53caf3c (diff)
[1.5.x] Fixed #19101 -- Decoding of non-ASCII POST data on Python 3.
Thanks Claude Paroz. Backport of 095eca8 from master.
Diffstat (limited to 'django/http/multipartparser.py')
-rw-r--r--django/http/multipartparser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/http/multipartparser.py b/django/http/multipartparser.py
index 40aefd6e9d..5bcc874982 100644
--- a/django/http/multipartparser.py
+++ b/django/http/multipartparser.py
@@ -110,7 +110,7 @@ class MultiPartParser(object):
# HTTP spec says that Content-Length >= 0 is valid
# handling content-length == 0 before continuing
if self._content_length == 0:
- return QueryDict(MultiValueDict(), encoding=self._encoding), MultiValueDict()
+ return QueryDict('', encoding=self._encoding), MultiValueDict()
# See if the handler will want to take care of the parsing.
# This allows overriding everything if somebody wants it.