Django

Code

Changeset 5465

Show
Ignore:
Timestamp:
06/11/07 15:03:07 (1 year ago)
Author:
mtredinnick
Message:

Fixed a bug in the way file uploads were constructed. The new behaviour
should emulate a form upload more accurately.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/test/client.py

    r5152 r5465  
    6666            lines.extend([ 
    6767                '--' + boundary, 
    68                 'Content-Disposition: form-data; name="%s"' % key, 
    69                 '', 
    70                 '--' + boundary, 
    71                 'Content-Disposition: form-data; name="%s_file"; filename="%s"' % (key, value.name), 
     68                'Content-Disposition: form-data; name="%s"; filename="%s"' % (key, value.name), 
    7269                'Content-Type: application/octet-stream', 
    7370                '',