From 1b58ac61f4c549cd46abb77db02d2eb7a63ffa60 Mon Sep 17 00:00:00 2001 From: Simon Broeng Jensen Date: Wed, 29 Jan 2025 13:25:03 +0100 Subject: [PATCH] server: fix serving of frontend after PR #1079 (#1090) Had changed behaviour to serve the gz compressed wasm package with the uncompressed handler. --- server/src/infra/tcp_server.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/server/src/infra/tcp_server.rs b/server/src/infra/tcp_server.rs index 01272d0..7699e23 100644 --- a/server/src/infra/tcp_server.rs +++ b/server/src/infra/tcp_server.rs @@ -95,10 +95,7 @@ async fn main_js_handler( async fn wasm_handler( data: web::Data>, ) -> actix_web::Result { - Ok( - actix_files::NamedFile::open_async(data.assets_path.join("pkg/lldap_app_bg.wasm.gz")) - .await?, - ) + Ok(actix_files::NamedFile::open_async(data.assets_path.join("pkg/lldap_app_bg.wasm")).await?) } async fn wasm_handler_compressed(