Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(download-backend)!: make reqwest/rustls the new default #3798

Merged
merged 2 commits into from
May 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/utils/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,12 @@ fn download_file_(
// Download the file

// Keep the curl env var around for a bit
let use_curl_backend = process().var_os("RUSTUP_USE_CURL").is_some();
let use_rustls = process().var_os("RUSTUP_USE_RUSTLS").is_some();
let use_curl_backend = process()
.var_os("RUSTUP_USE_CURL")
.map_or(false, |it| it != "0");
let use_rustls = process()
.var_os("RUSTUP_USE_RUSTLS")
.map_or(true, |it| it != "0");
let (backend, notification) = if use_curl_backend {
(Backend::Curl, Notification::UsingCurl)
} else {
Expand Down
Loading