diff --git a/src/net.rs b/src/net.rs index f539fd5..99359ee 100644 --- a/src/net.rs +++ b/src/net.rs @@ -1,11 +1,6 @@ use std::time::Duration; fn default_reqwest_settings() -> reqwest::ClientBuilder { - // maybe we should configure it by ourselves - use reqwest::header::{HeaderMap, CONNECTION}; - - let mut headers = HeaderMap::new(); - headers.insert(CONNECTION, "keep-alive".parse().unwrap()); let connect_timeout = Duration::from_secs(10); let timeout = connect_timeout + Duration::from_secs(24); @@ -13,8 +8,6 @@ fn default_reqwest_settings() -> reqwest::ClientBuilder { reqwest::Client::builder() .connect_timeout(connect_timeout) .timeout(timeout) - .tcp_nodelay(true) - .default_headers(headers) } pub fn client_from_config() -> reqwest::Client { use crate::config::CONFIG;