From 219b3327336ba4e457ee1059fb781f89341f5d6e Mon Sep 17 00:00:00 2001 From: lanbinshen Date: Thu, 12 Feb 2026 17:49:15 +0800 Subject: [PATCH] fix path error --- actix-files/src/service.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/actix-files/src/service.rs b/actix-files/src/service.rs index 04a84b9b8..da1aa7307 100644 --- a/actix-files/src/service.rs +++ b/actix-files/src/service.rs @@ -181,8 +181,8 @@ impl Service for FilesService { for directory in &this.directories { let path = directory.join(&path_on_disk); match path.canonicalize() { - Ok(canonical_path) => { - found_path = Some(canonical_path); + Ok(_) => { + found_path = Some(path); break; } Err(err) => {