From 55a1405e71ea5f04f73288b5fe8f23c627bcc17c Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Mon, 29 Jul 2019 21:49:25 +0200 Subject: [PATCH] Enable NormalizePath middleware This allows double slashes in paths --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index ee911fd..c4e6f7b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -355,6 +355,7 @@ fn start_server() -> Result<()> { App::new() .data(state.clone()) .wrap(middleware::Logger::default()) + .wrap(middleware::NormalizePath) .service(index) .service(css) .service(favicon32)