Upgrade reqwest and idna

This commit is contained in:
Tom Parker-Shemilt
2024-12-16 20:05:32 +00:00
parent 69af49a708
commit 628728dc01
3 changed files with 680 additions and 382 deletions

1058
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -10,7 +10,7 @@ default-run = "awesome-rust"
[dependencies]
pulldown-cmark = "0.8"
futures = "0.3"
reqwest = { version="0.11", default-features=false, features=["rustls-tls", "json"] }
reqwest = { version="0.12", default-features=false, features=["rustls-tls", "json"] }
tokio = {version = "1", features = ["macros", "rt", "rt-multi-thread", "time"] }
serde = { version = "1.0", features = ["derive"] }
serde_yaml = "0.8"

View File

@@ -327,7 +327,7 @@ fn get_url_core(url: String) -> BoxFuture<'static, (String, Result<(), CheckerEr
let redirect = ok.headers().get(header::LOCATION).unwrap().to_str().unwrap();
let merged_url = Url::parse(&url).unwrap().join(redirect).unwrap();
info!("Got 302 from Azure devops, so replacing {} with {}", url, merged_url);
let (_new_url, res) = get_url_core(merged_url.into_string()).await;
let (_new_url, res) = get_url_core(merged_url.into()).await;
return (url, res);
}