hunter: add URL in User-Agent
This commit is contained in:
parent
2847bdc69e
commit
7c7b75537e
|
@ -78,11 +78,9 @@ async fn run() {
|
||||||
.timeout(Duration::from_secs(30))
|
.timeout(Duration::from_secs(30))
|
||||||
.tcp_keepalive(Duration::from_secs(300))
|
.tcp_keepalive(Duration::from_secs(300))
|
||||||
.pool_max_idle_per_host(0)
|
.pool_max_idle_per_host(0)
|
||||||
.user_agent(concat!(
|
.user_agent(
|
||||||
env!("CARGO_PKG_NAME"),
|
format!("{}/{} (+https://fedi.buzz/)", env!("CARGO_PKG_NAME"), env!("CARGO_PKG_VERSION"))
|
||||||
"/",
|
)
|
||||||
env!("CARGO_PKG_VERSION"),
|
|
||||||
))
|
|
||||||
.deflate(true)
|
.deflate(true)
|
||||||
.gzip(true)
|
.gzip(true)
|
||||||
.trust_dns(true)
|
.trust_dns(true)
|
||||||
|
|
Loading…
Reference in New Issue