Skip to content

Commit

Permalink
Update static-libs-download.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rokdd committed Jan 5, 2022
1 parent 51d7211 commit 543942e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def handle(self, *args, **kwargs):
for rfile in r:
#print(rfile.headers)
#rfile.headers.get("content-disposition").split("filename=")[1]
z.writestr(os.path.basename(rfile.url),io.BytesIO(rfile.content))
z.writestr(os.path.basename(rfile.url),rfile.content)
elif isinstance(r,requests.Response) and r.headers.get('content-type') == "application/zip":
z = zipfile.ZipFile(io.BytesIO(r.content))
else:
Expand Down

0 comments on commit 543942e

Please sign in to comment.