From 9f76a7a1b37f9ce19dd0d4fd0c6a5b6b3007dfe3 Mon Sep 17 00:00:00 2001 From: Edward Shen Date: Mon, 12 Jul 2021 16:39:06 -0400 Subject: [PATCH] Add compression middleware --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index 773c8a7..a9f4d87 100644 --- a/src/main.rs +++ b/src/main.rs @@ -164,6 +164,7 @@ async fn main() -> Result<(), Box> { // Start HTTPS server let server = HttpServer::new(move || { App::new() + .wrap(actix_web::middleware::Compress::default()) .service(routes::index) .service(routes::token_data) .service(routes::token_data_saver)