We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a689aa commit 5b3f2cbCopy full SHA for 5b3f2cb
src/utils/utils.rs
@@ -221,8 +221,12 @@ fn download_file_(
221
// Download the file
222
223
// Keep the curl env var around for a bit
224
- let use_curl_backend = process().var_os("RUSTUP_USE_CURL").is_some();
225
- let use_rustls = process().var_os("RUSTUP_USE_RUSTLS").is_some();
+ let use_curl_backend = process()
+ .var_os("RUSTUP_USE_CURL")
226
+ .map_or(false, |it| it != "0");
227
+ let use_rustls = process()
228
+ .var_os("RUSTUP_USE_RUSTLS")
229
230
let (backend, notification) = if use_curl_backend {
231
(Backend::Curl, Notification::UsingCurl)
232
} else {
0 commit comments