summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorBoulder Sprinters <boulder-sprinters@djangoproject.com>2007-06-12 17:56:00 +0000
committerBoulder Sprinters <boulder-sprinters@djangoproject.com>2007-06-12 17:56:00 +0000
commit1f09aa1e7b4079e22d1dfcde0f7d4e571389d8b5 (patch)
treefe642c5f74b17e197198e5b376b2b44c7fe40daa /django
parent0f36cbec13a2a6792036b16a7596ad024592309c (diff)
downloaddjango-1f09aa1e7b4079e22d1dfcde0f7d4e571389d8b5.tar.gz
boulder-oracle-sprint: Merged to [5466]
git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@5467 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django')
-rw-r--r--django/test/client.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/django/test/client.py b/django/test/client.py
index c3110f02ec..e4fd54c23b 100644
--- a/django/test/client.py
+++ b/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 @@ class Client:
return True
else:
return False
- \ No newline at end of file
+