hunter/main: limit http client redirect policy
This commit is contained in:
parent
7b6e480576
commit
c4f2b1f640
|
@ -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"))
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue