From bfead2f7faec4ba86600db9d5bacf62b7fecfcbc Mon Sep 17 00:00:00 2001 From: Ali MJ Al-Nasrawy Date: Sat, 7 Aug 2021 16:49:21 +0300 Subject: [PATCH] fix tests --- actix-files/src/files.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actix-files/src/files.rs b/actix-files/src/files.rs index 49d81eb03..68879822a 100644 --- a/actix-files/src/files.rs +++ b/actix-files/src/files.rs @@ -106,7 +106,7 @@ impl Files { }; Files { - path: mount_path.to_owned(), + path: mount_path.trim_end_matches('/').to_owned(), directory: dir, index: None, show_index: false,