Ticket #6256: 6256.diff

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

Simple patch

  • home/kmt/django/trunk/django/http/__init__.py

     
    103103    from cgi import parse_header
    104104    raw_message = '\r\n'.join(['%s:%s' % pair for pair in header_dict.items()])
    105105    raw_message += '\r\n\r\n' + post_data
    106     msg = email.message_from_string(raw_message)
     106    msg = email.message_from_string(raw_message.replace('\r\n', '\n'))
    107107    POST = QueryDict('', mutable=True)
    108108    FILES = MultiValueDict()
    109109    for submessage in msg.get_payload():
Back to Top