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))
|
||||
.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)
|
||||
|
|
Loading…
Reference in New Issue