Skip to content

Commit

Permalink
Update python_multipart/multipart.py
Browse files Browse the repository at this point in the history
Co-authored-by: Marcelo Trylesinski <[email protected]>
  • Loading branch information
jhnstrk and Kludex authored Dec 16, 2024
1 parent 37f4c53 commit afbf23f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python_multipart/multipart.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])

Expand Down

0 comments on commit afbf23f

Please sign in to comment.