Skip to content

Commit cf1ec95

Browse files
committed
Fix encoding check
1 parent 571239a commit cf1ec95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_portalbase/network.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ def wget(self, url, filename, *, chunk_size=12000, headers=None):
333333

334334
if self._debug:
335335
print(response.headers)
336-
if "content-length" not in headers and "transfer-encoding" not in headers and headers["transfer-encoding"] == "chunked":
336+
if "content-length" not in headers and "transfer-encoding" not in headers and headers["transfer-encoding"] != "chunked":
337337
raise RuntimeError("Invalid headers in response")
338338

339339
print("Saving data to ", filename)

0 commit comments

Comments
 (0)