disable compression
This commit is contained in:
parent
20a0b99f3a
commit
7a81b1654b
|
@ -326,9 +326,13 @@ impl App {
|
||||||
// make a http shared client
|
// make a http shared client
|
||||||
// TODO: can we configure the connection pool? should we?
|
// TODO: can we configure the connection pool? should we?
|
||||||
// TODO: timeouts from config. defaults are hopefully good
|
// TODO: timeouts from config. defaults are hopefully good
|
||||||
|
// TODO: is always disabling compression a good idea?
|
||||||
let http_client = Some(
|
let http_client = Some(
|
||||||
reqwest::ClientBuilder::new()
|
reqwest::ClientBuilder::new()
|
||||||
.connect_timeout(Duration::from_secs(5))
|
.connect_timeout(Duration::from_secs(5))
|
||||||
|
.no_brotli()
|
||||||
|
.no_deflate()
|
||||||
|
.no_gzip()
|
||||||
.timeout(Duration::from_secs(5 * 60))
|
.timeout(Duration::from_secs(5 * 60))
|
||||||
.user_agent(APP_USER_AGENT)
|
.user_agent(APP_USER_AGENT)
|
||||||
.build()?,
|
.build()?,
|
||||||
|
|
Loading…
Reference in New Issue