hunter/main: limit http client redirect policy

This commit is contained in:
Astro 2023-10-29 20:12:39 +01:00
parent 7b6e480576
commit c4f2b1f640
1 changed files with 1 additions and 0 deletions

View File

@ -81,6 +81,7 @@ async fn run() {
.timeout(Duration::from_secs(30))
.tcp_keepalive(Duration::from_secs(300))
.pool_max_idle_per_host(0)
.redirect(reqwest::redirect::Policy::limited(2))
.user_agent(
format!("{}/{} (+https://fedi.buzz/)", env!("CARGO_PKG_NAME"), env!("CARGO_PKG_VERSION"))
)