From 2973035a85e1592292b18097b1b9c5f368af60b5 Mon Sep 17 00:00:00 2001 From: Jose Quintana Date: Mon, 26 Apr 2021 23:33:34 +0200 Subject: [PATCH] refactor: reorder server compression filters --- src/server.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server.rs b/src/server.rs index 9858713..768478f 100644 --- a/src/server.rs +++ b/src/server.rs @@ -90,8 +90,8 @@ impl Server { "brotli" => tokio::task::spawn(async move { let fs_dir_filter = warp::fs::dir(root_dir) .map(cache::control_headers) - .with(warp::trace::request()) .with(warp::compression::brotli(true)) + .with(warp::trace::request()) .recover(rejection::handle_rejection); match cors_filter_opt { @@ -145,8 +145,8 @@ impl Server { "gzip" => tokio::task::spawn(async move { let fs_dir_filter = warp::fs::dir(root_dir) .map(cache::control_headers) - .with(warp::trace::request()) .with(warp::compression::gzip(true)) + .with(warp::trace::request()) .recover(rejection::handle_rejection); match cors_filter_opt { -- libgit2 1.7.2