Browse Source

feat: Add user agent string

next
Wilmhit 2 weeks ago
parent
commit
8def22bfb8
  1. 2
      src/service/globals/mod.rs

2
src/service/globals/mod.rs

@ -543,7 +543,9 @@ impl Service {
}
fn reqwest_client_builder(config: &Config) -> Result<reqwest::ClientBuilder> {
let user_agent = format!("Conduit/{}", env!("CARGO_PKG_VERSION"));
let mut reqwest_client_builder = reqwest::Client::builder()
.user_agent(&user_agent)
.pool_max_idle_per_host(0)
.connect_timeout(Duration::from_secs(30))
.timeout(Duration::from_secs(60 * 3));

Loading…
Cancel
Save