From 2646ea119e58645214fcbcedbcaea8ea68b67db0 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Fri, 29 Jul 2022 10:33:49 +0100 Subject: [PATCH] Temporarily disable HTTP response compression Disable response compression until `Accept-Encoding` headers are properly evaluated, and the compression can be chosen based on the HTTP request. This relies on https://github.com/seanmonstar/warp/pull/513 being implemented. --- src/net/mod.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/net/mod.rs b/src/net/mod.rs index 38364492..26cf740e 100644 --- a/src/net/mod.rs +++ b/src/net/mod.rs @@ -48,8 +48,6 @@ pub async fn init() -> Result<(), Error> { .recover(fail::recover) // End routes setup ; - // Enable response compression - let net = net.with(warp::compression::gzip()); // Specify a generic version header let net = net.with(head::version()); // Specify a generic server header