summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-05-28 11:54:05 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-05-28 11:54:05 +0000
commitc6694dcdee914914cfee9050f062caacbbd3a922 (patch)
tree3f3987e9d43efd0ab8bba5d14efcf8ab8a6b0e2b
parent1e8d1c808bf027be1c26329dc8695daa44cea293 (diff)
unicode: Fixed decoding problems in POST when a form upload was part of a form.
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5373 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/http/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/http/__init__.py b/django/http/__init__.py
index 481c604ba8..7ffe7be085 100644
--- a/django/http/__init__.py
+++ b/django/http/__init__.py
@@ -69,7 +69,7 @@ def parse_file_upload(header_dict, post_data):
raw_message = '\r\n'.join(['%s:%s' % pair for pair in header_dict.items()])
raw_message += '\r\n\r\n' + post_data
msg = email.message_from_string(raw_message)
- POST = MultiValueDict()
+ POST = QueryDict('', mutable=True)
FILES = MultiValueDict()
for submessage in msg.get_payload():
if submessage and isinstance(submessage, email.Message.Message):