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.
2 parents 5390215 + 157732c commit c070f6eCopy full SHA for c070f6e
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