Skip to content

Commit

Permalink
Update multipart.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamsorcerer authored Apr 6, 2024
1 parent e6dec7b commit e21254a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aiohttp/multipart.py
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ async def _read_until_first_boundary(self) -> None:
chunk = chunk.rstrip()
if chunk == self._boundary:
return
elif chunk == end_boundary:
elif chunk == self._boundary + b"--":
self._at_eof = True
return

Expand Down

0 comments on commit e21254a

Please sign in to comment.