Update dependencies and fix error handling in HTTP GET request

This commit is contained in:
2026-05-30 13:02:01 -05:00
parent 72cb97249d
commit 802261308e
3 changed files with 47 additions and 120 deletions
+1 -1
View File
@@ -760,7 +760,7 @@ fn run_certdata_fetch(args: CertdataFetchArgs) -> Result<()> {
fn http_get_text(client: &reqwest::blocking::Client, url: &str) -> Result<String> {
let response = match client.get(url).send() {
Ok(response) => response,
Err(err) if is_mozilla_hg_url(url) => {
Err(_err) if is_mozilla_hg_url(url) => {
println!("reqwest fetch failed for Mozilla hg URL; retrying via openssl.");
return openssl_https_get_text(url);
}