Skip to content

Commit

Permalink
Added support for 301 responses
Browse files Browse the repository at this point in the history
  • Loading branch information
Itz-fork committed Aug 20, 2022
1 parent 8bf4374 commit d9c662f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unzipper/lib/downloader/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ async def _from_direct_link(self, url: str, path: str, message: Message = None,
if resp.status == 200:
pass
# Support for temporarily moved resources
elif resp.status == 302:
elif resp.status in (301, 302):
resp = await session.get(url, timeout=None, allow_redirects=True)
# Raise HttpStatusError if response status isn't 200
else:
Expand Down

0 comments on commit d9c662f

Please sign in to comment.