Skip to content

Commit

Permalink
Fix download error
Browse files Browse the repository at this point in the history
GitHub doesn't seem to like setting "Accept: application/zip" when download a
log URL, even though the Content-Type for the response is application/zip.
  • Loading branch information
jwodder committed Nov 9, 2023
1 parent afba1bb commit b6db09b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tinuous/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def download_zipfile(self, path: str, target_dir: Path) -> None:
zippath = Path(fpath)
i = 0
while True:
self.download(path, zippath, headers={"Accept": "application/zip"})
self.download(path, zippath, headers={"Accept": "*/*"})
try:
with ZipFile(zippath) as zf:
zf.extractall(target_dir)
Expand Down

0 comments on commit b6db09b

Please sign in to comment.