Ticket #15496: django-base64-upload-patch.diff

File django-base64-upload-patch.diff, 667 bytes (added by gene@…, 14 years ago)
  • django/http/multipartparser.py

    diff -urN Django-1.2.3-py2.6.egg.dist/django/http/multipartparser.py Django-1.2.3-py2.6.egg/django/http/multipartparser.py
    old new  
    145145                    continue
    146146
    147147                transfer_encoding = meta_data.get('content-transfer-encoding')
     148                if transfer_encoding is not None:
     149                    transfer_encoding = transfer_encoding[0].strip()
    148150                field_name = force_unicode(field_name, encoding, errors='replace')
    149151
    150152                if item_type == FIELD:
Back to Top