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])