Skip to content

Commit

Permalink
Allow redirection on connection to mirror
Browse files Browse the repository at this point in the history
fixed #41
  • Loading branch information
miurahr authored Sep 25, 2019
1 parent e83dc52 commit 7b1430f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aqt/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def retrieve_archive(package, path=None, command=None):
mml = Metalink(url)
newurl = mml.altlink(blacklist=blacklist)
print('Redirected to new URL: {}'.format(newurl))
r = requests.get(newurl, stream=True, allow_redirects=False)
r = requests.get(newurl, stream=True, allow_redirects=True)
except requests.exceptions.ConnectionError as e:
print("Caught download error: %s" % e.args)
return False
Expand Down

0 comments on commit 7b1430f

Please sign in to comment.