Skip to content

Commit

Permalink
Allow tuple or list for multipart values (#2355)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchristie committed Aug 30, 2022
1 parent ccd98b1 commit 965b8ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion httpx/_multipart.py
Expand Up @@ -205,7 +205,7 @@ def _iter_fields(
self, data: dict, files: RequestFiles
) -> typing.Iterator[typing.Union[FileField, DataField]]:
for name, value in data.items():
if isinstance(value, list):
if isinstance(value, (tuple, list)):
for item in value:
yield DataField(name=name, value=item)
else:
Expand Down

0 comments on commit 965b8ad

Please sign in to comment.