From f5cd48b07f7fd75c06dac825215b7389f0c7780a Mon Sep 17 00:00:00 2001 From: spikecodes <19519553+spikecodes@users.noreply.github.com> Date: Sat, 21 May 2022 21:06:03 -0700 Subject: [PATCH] Fix #514 --- src/server.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server.rs b/src/server.rs index ce20860..979dbd7 100644 --- a/src/server.rs +++ b/src/server.rs @@ -158,8 +158,8 @@ impl Server { Ok::<_, String>(service_fn(move |req: Request| { let headers = default_headers.clone(); - // Remove double slashes - let mut path = req.uri().path().replace("//", "/"); + // Remove double slashes and decode encoded slashes + let mut path = req.uri().path().replace("//", "/").replace("%2F","/"); // Remove trailing slashes if path != "/" && path.ends_with('/') {