chore(deps): update reqwest to 0.13 for updater (#3213)

This commit is contained in:
Tony
2026-01-16 18:37:20 +08:00
committed by GitHub
parent 0d126ff0ad
commit 05c5da072b
4 changed files with 149 additions and 21 deletions
+6
View File
@@ -432,6 +432,12 @@ impl Updater {
log::debug!("checking for updates {url}");
#[cfg(feature = "rustls-tls")]
if rustls::crypto::CryptoProvider::get_default().is_none() {
// This can only fail if there is already a default provider which we checked for already.
let _ = rustls::crypto::ring::default_provider().install_default();
}
let mut request = ClientBuilder::new().user_agent(UPDATER_USER_AGENT);
if self.config.dangerous_accept_invalid_certs {
request = request.danger_accept_invalid_certs(true);