Skip to content

Commit 90ca447

Browse files
committed
Auto merge of #95796 - bzEq:bzEq/curl-redirect, r=Dylan-DPC
[bootstrap.py] Instruct curl to follow redirect Some mirror RUSTUP_DIST_SERVER (like https://mirrors.sjtug.sjtu.edu.cn/rust-static) perform redirection when downloading stage0 compiler. Curl should be able to follow that.
2 parents 625e4dd + 95b1d71 commit 90ca447

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)