Skip to content

Commit

Permalink
rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
Kludex committed Sep 29, 2024
1 parent df62747 commit be23688
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions multipart/multipart.py
Original file line number Diff line number Diff line change
Expand Up @@ -1149,10 +1149,8 @@ def data_callback(name: CallbackName, end_i: int, remaining: bool = False) -> No

else:
# Check to ensure our boundary matches
i2 = index + 2
e = boundary[i2]
if c != e:
msg = "Expected boundary character %r, got %r at index %d" % (e, c, i2)
if c != boundary[index + 2]:
msg = "Expected boundary character %r, got %r at index %d" % (boundary[index + 2], c, index + 2)
self.logger.warning(msg)
e = MultipartParseError(msg)
e.offset = i
Expand Down

0 comments on commit be23688

Please # to comment.