Skip to content

Commit 95b1d71

Browse files
author
Kai Luo
committed
[bootstrap.py] Instruct curl to follow redirect
Some RUSTUP_DIST_SERVER perform redirection when downloading stage0 compiler. Curl should be able to follow that.
1 parent e745b4d commit 95b1d71

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: src/bootstrap/bootstrap.py

+1
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ def _download(path, url, probably_big, verbose, exception, help_on_error=None):
122122
option = "-s"
123123
require(["curl", "--version"])
124124
run(["curl", option,
125+
"-L", # Follow redirect.
125126
"-y", "30", "-Y", "10", # timeout if speed is < 10 bytes/sec for > 30 seconds
126127
"--connect-timeout", "30", # timeout if cannot connect within 30 seconds
127128
"--retry", "3", "-Sf", "-o", path, url],

0 commit comments

Comments
 (0)