From c6694dcdee914914cfee9050f062caacbbd3a922 Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Mon, 28 May 2007 11:54:05 +0000 Subject: [PATCH] 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 --- django/http/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):