Code

Ticket #6256: 6256.diff

File 6256.diff, 667 bytes (added by Karen Tracey <kmtracey@…>, 6 years ago)

Simple patch

Line 
1Index: /home/kmt/django/trunk/django/http/__init__.py
2===================================================================
3--- /home/kmt/django/trunk/django/http/__init__.py      (revision 7106)
4+++ /home/kmt/django/trunk/django/http/__init__.py      (working copy)
5@@ -103,7 +103,7 @@
6     from cgi import parse_header
7     raw_message = '\r\n'.join(['%s:%s' % pair for pair in header_dict.items()])
8     raw_message += '\r\n\r\n' + post_data
9-    msg = email.message_from_string(raw_message)
10+    msg = email.message_from_string(raw_message.replace('\r\n', '\n'))
11     POST = QueryDict('', mutable=True)
12     FILES = MultiValueDict()
13     for submessage in msg.get_payload():