summaryrefslogtreecommitdiff
path: root/django/http/multipartparser.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2016-05-03 12:04:08 -0400
committerTim Graham <timograham@gmail.com>2016-05-03 12:04:08 -0400
commitead21a1949e408cf37226049559d0e71e3fdff6d (patch)
treec79b379428fd292a747a3c854d166fe48d2572f6 /django/http/multipartparser.py
parentac77c55bc5fc54cd763a7ae426784650a8cc97c9 (diff)
downloaddjango-ead21a1949e408cf37226049559d0e71e3fdff6d.tar.gz
Refs #22897 -- Removed unneeded empty string QueryDict argument.
Diffstat (limited to 'django/http/multipartparser.py')
-rw-r--r--django/http/multipartparser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/http/multipartparser.py b/django/http/multipartparser.py
index 67d0fc48d5..e61eee9200 100644
--- a/django/http/multipartparser.py
+++ b/django/http/multipartparser.py
@@ -120,7 +120,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('', encoding=self._encoding), MultiValueDict()
+ return QueryDict(encoding=self._encoding), MultiValueDict()
# See if any of the handlers take care of the parsing.
# This allows overriding everything if need be.
@@ -135,7 +135,7 @@ class MultiPartParser(object):
return result[0], result[1]
# Create the data structures to be used later.
- self._post = QueryDict('', mutable=True)
+ self._post = QueryDict(mutable=True)
self._files = MultiValueDict()
# Instantiate the parser and stream: