Skip to content

Commit 7c37ed7

Browse files
committed
Fix handling of gzip compressed http results
1 parent 4189261 commit 7c37ed7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def download(url: str, dst: str) -> None:
5454
response.raise_for_status() # raise a meaningful (?) exception if there was e.g. a 404 error
5555
os.makedirs(os.path.dirname(dst), exist_ok=True)
5656
with open(dst, "wb") as f:
57-
for chunk in response.raw.stream(16384, decode_content=False):
57+
for chunk in response.raw.stream(16384, decode_content=True):
5858
if chunk:
5959
f.write(chunk)
6060

0 commit comments

Comments
 (0)