Skip to content

Commit 8e43067

Browse files
authored
Update multipart.py
1 parent 0776bf0 commit 8e43067

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

multipart/multipart.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ def parse_options_header(value: Union[str, bytes]) -> Tuple[bytes, Dict[bytes, b
110110
options = {}
111111
for param in params:
112112
key, value = param
113+
if isinstance(value, tuple):
114+
value = value[-1]
113115
# If the value is a filename, we need to fix a bug on IE6 that sends
114116
# the full file path instead of the filename.
115117
if key == 'filename':

0 commit comments

Comments
 (0)