From a4497810e292e2d7b5a891f9d0f3a896c1c3978f Mon Sep 17 00:00:00 2001 From: lorenpike Date: Wed, 7 Feb 2024 09:04:44 -0800 Subject: [PATCH] Fixing issue #78 --- multipart/multipart.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/multipart/multipart.py b/multipart/multipart.py index e1d10fc..5651552 100644 --- a/multipart/multipart.py +++ b/multipart/multipart.py @@ -110,6 +110,8 @@ def parse_options_header(value: Union[str, bytes]) -> Tuple[bytes, Dict[bytes, b options = {} for param in params: key, value = param + if isinstance(value, tuple): + value = value[-1] # If the value is a filename, we need to fix a bug on IE6 that sends # the full file path instead of the filename. if key == 'filename':