From 2541667211230be06261380b0a7b9a5fd42b0cd1 Mon Sep 17 00:00:00 2001 From: Prabir Shrestha Date: Wed, 22 Dec 2021 01:06:31 +0000 Subject: [PATCH] disable compression since it is enabling for all requests --- src/app.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app.rs b/src/app.rs index dfd55a8..a780ee9 100644 --- a/src/app.rs +++ b/src/app.rs @@ -1,7 +1,7 @@ use crate::{appstate::AppState, handlers, routes}; use trillium::{Handler, State}; use trillium_caching_headers::caching_headers; -use trillium_compression::compression; +// use trillium_compression::compression; use trillium_conn_id::ConnId; use trillium_logger::{apache_combined, Logger}; use trillium_router::Router; @@ -15,7 +15,7 @@ pub fn app() -> impl Handler { trillium_conn_id::log_formatter::conn_id, "-", )), - compression(), + // compression(), caching_headers(), Router::new() .get("/", routes::posts::get_posts)