From 7a81b1654b3eabbc1443a2df94aef47a4a608ad4 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Mon, 16 Oct 2023 11:08:52 -0700 Subject: [PATCH] disable compression --- web3_proxy/src/app/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web3_proxy/src/app/mod.rs b/web3_proxy/src/app/mod.rs index 5a3f7d84..35ae96b7 100644 --- a/web3_proxy/src/app/mod.rs +++ b/web3_proxy/src/app/mod.rs @@ -326,9 +326,13 @@ impl App { // make a http shared client // TODO: can we configure the connection pool? should we? // TODO: timeouts from config. defaults are hopefully good + // TODO: is always disabling compression a good idea? let http_client = Some( reqwest::ClientBuilder::new() .connect_timeout(Duration::from_secs(5)) + .no_brotli() + .no_deflate() + .no_gzip() .timeout(Duration::from_secs(5 * 60)) .user_agent(APP_USER_AGENT) .build()?,