Permalink
Showing with 2 additions and 5 deletions.
  1. +2 −5 django/test/client.py
View
7 django/test/client.py
@@ -65,10 +65,7 @@ def encode_multipart(boundary, data):
if isinstance(value, file):
lines.extend([
'--' + boundary,
- 'Content-Disposition: form-data; name="%s"' % key,
- '',
- '--' + boundary,
- 'Content-Disposition: form-data; name="%s_file"; filename="%s"' % (key, value.name),
+ 'Content-Disposition: form-data; name="%s"; filename="%s"' % (key, value.name),
'Content-Type: application/octet-stream',
'',
value.read()
@@ -251,4 +248,4 @@ def login(self, **credentials):
return True
else:
return False
-
+

0 comments on commit a4d773b

Please sign in to comment.