hunter: add URL in User-Agent

This commit is contained in:
Astro 2023-04-24 19:38:29 +02:00
parent 2847bdc69e
commit 7c7b75537e
1 changed files with 3 additions and 5 deletions

View File

@ -78,11 +78,9 @@ async fn run() {
.timeout(Duration::from_secs(30))
.tcp_keepalive(Duration::from_secs(300))
.pool_max_idle_per_host(0)
.user_agent(concat!(
env!("CARGO_PKG_NAME"),
"/",
env!("CARGO_PKG_VERSION"),
))
.user_agent(
format!("{}/{} (+https://fedi.buzz/)", env!("CARGO_PKG_NAME"), env!("CARGO_PKG_VERSION"))
)
.deflate(true)
.gzip(true)
.trust_dns(true)