8000 Docs and changes update. · github3py/urllib3@a602b64 · GitHub
[go: up one dir, main page]

Skip to content

Commit a602b64

Browse files
committed
Docs and changes update.
1 parent 35212b7 commit a602b64

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

CHANGES.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ dev (master branch)
88

99
* Refactored helpers into a ``urllib3.util`` submodule.
1010

11+
* Fixed multipart encoding to support list-of-tuples for keys with multiple
12+
values. (Issue #48)
13+
1114

1215
1.2.2 (2012-02-06)
1316
++++++++++++++++++

urllib3/filepost.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ def encode_multipart_formdata(fields, boundary=None):
4141
Encode a dictionary of ``fields`` using the multipart/form-data mime format.
4242
4343
:param fields:
44-
Dictionary of fields. The key is treated as the field name, and the
45-
value as the body of the form-data. If the value is a tuple of two
46-
elements, then the first element is treated as the filename of the
47-
form-data section.
44+
Dictionary of fields or list of (key, value) field tuples.
45+
The key is treated as the field name, and the value as the body of the
46+
form-data. If the value is a tuple of two elements, then the first
47+
element is treated as the filename of the form-data section.
4848
4949
:param boundary:
5050
If not specified, then a random boundary will be generated using

0 commit comments

Comments
 (0)
0