From afbf23f443121f17a1850b3e3e8a86bdcaa0350e Mon Sep 17 00:00:00 2001 From: John Stark Date: Mon, 16 Dec 2024 19:14:08 +0000 Subject: [PATCH] Update python_multipart/multipart.py Co-authored-by: Marcelo Trylesinski --- python_multipart/multipart.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python_multipart/multipart.py b/python_multipart/multipart.py index bc538a3..00234cf 100644 --- a/python_multipart/multipart.py +++ b/python_multipart/multipart.py @@ -1601,7 +1601,7 @@ def on_field_name(data: bytes, start: int, end: int) -> None: def on_field_data(data: bytes, start: int, end: int) -> None: nonlocal f if f is None: - f = FieldClass(b"".join(name_buffer), content_type=None) + f = FieldClass(b"".join(name_buffer)) del name_buffer[:] f.write(data[start:end])