Skip to content

Commit

Permalink
Merge pull request #56 from askpatrickw/bytesarray-split
Browse files Browse the repository at this point in the history
One more case for _buffer_split0
  • Loading branch information
jepler authored Dec 18, 2020
2 parents 5390215 + 157732c commit c070f6e
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 c070f6e

Please sign in to comment.