aboutsummaryrefslogtreecommitdiffhomepage
path: root/pingora-proxy/src/lib.rs
diff options
context:
space:
mode:
authorYuchen Wu <[email protected]>2024-06-21 10:02:15 -0700
committerEdward Wang <[email protected]>2024-06-28 12:34:25 -0700
commit62ddb7ebaef5aff39f4bf8c0d60906e8151b3cae (patch)
treee9961e8db4ac2cb133c22ab05177100f9ad73053 /pingora-proxy/src/lib.rs
parentdda7bec58cb176228b8194e97c8c9e52bf36b878 (diff)
downloadpingora-62ddb7ebaef5aff39f4bf8c0d60906e8151b3cae.tar.gz
pingora-62ddb7ebaef5aff39f4bf8c0d60906e8151b3cae.zip
Move adding ResponseCompression module logic to init_downstream_modules
So that users can override this behavior.
Diffstat (limited to 'pingora-proxy/src/lib.rs')
-rw-r--r--pingora-proxy/src/lib.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/pingora-proxy/src/lib.rs b/pingora-proxy/src/lib.rs
index d89cb4a..99e7d6d 100644
--- a/pingora-proxy/src/lib.rs
+++ b/pingora-proxy/src/lib.rs
@@ -766,10 +766,6 @@ where
SV: ProxyHttp,
{
let mut proxy = HttpProxy::new(inner, conf.clone());
- // Add disabled downstream compression module by default
- proxy
- .downstream_modules
- .add_module(ResponseCompressionBuilder::enable(0));
proxy.handle_init_modules();
Service::new(name.to_string(), proxy)
}