We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5390215 commit 157732cCopy full SHA for 157732c
adafruit_requests.py
@@ -274,7 +274,7 @@ def close(self):
274
self._throw_away(self._remaining)
275
elif self._chunked:
276
while True:
277
- chunk_header = self._readto(b"\r\n").split(b";", 1)[0]
+ chunk_header = _buffer_split0(self._readto(b"\r\n"), b";")
278
chunk_size = int(bytes(chunk_header), 16)
279
if chunk_size == 0:
280
break
0 commit comments