Skip to content

Commit

Permalink
One more case for _buffer_split0
Browse files Browse the repository at this point in the history
  • Loading branch information
askpatrickw committed Dec 17, 2020
1 parent 5390215 commit 157732c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adafruit_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ def close(self):
self._throw_away(self._remaining)
elif self._chunked:
while True:
chunk_header = self._readto(b"\r\n").split(b";", 1)[0]
chunk_header = _buffer_split0(self._readto(b"\r\n"), b";")
chunk_size = int(bytes(chunk_header), 16)
if chunk_size == 0:
break
Expand Down

0 comments on commit 157732c

Please sign in to comment.