Handled snap curl issue inside Rust #107722

This commit is contained in:
Tharun Suresh
2023-02-09 15:53:20 +05:30
parent 4259073e9a
commit 858a4aa70c
+2 -2
View File
@@ -221,10 +221,10 @@ fn download_http_with_retries(&self, tempfile: &Path, url: &str, help_on_error:
"--retry",
"3",
"-Sf",
"-o",
]);
curl.arg(tempfile);
curl.arg(url);
let f = File::create(tempfile).unwrap();
curl.stdout(Stdio::from(f));
if !self.check_run(&mut curl) {
if self.build.contains("windows-msvc") {
println!("Fallback to PowerShell");