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 347a527 + 9543728 commit 6c56de7Copy full SHA for 6c56de7
adafruit_requests.py
@@ -266,7 +266,8 @@ def _parse_headers(self) -> None:
266
header = self._readto(b"\r\n")
267
if not header:
268
break
269
- title, content = bytes(header).split(b": ", 1)
+ title, content = bytes(header).split(b":", 1)
270
+ content = content.strip()
271
if title and content:
272
# enforce that all headers are lowercase
273
title = str(title, "utf-8").lower()
0 commit comments