From 4e7b91995e324713fa0d10154dd63b961e79b9d3 Mon Sep 17 00:00:00 2001 From: Pierce Thompson Date: Sun, 20 Nov 2022 18:07:47 -0500 Subject: [PATCH] Compress responses --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index 939ccf0..2f9fb73 100644 --- a/src/main.rs +++ b/src/main.rs @@ -82,6 +82,7 @@ async fn main() -> std::io::Result<()> { let mut server = HttpServer::new(|| { App::new() + .wrap(middleware::Compress::default()) .wrap( middleware::DefaultHeaders::new() .add(("Referrer-Policy", "no-referrer"))