diff --git a/hunter/src/main.rs b/hunter/src/main.rs index aec6135..fab68a2 100644 --- a/hunter/src/main.rs +++ b/hunter/src/main.rs @@ -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")) )