From c9fa60bfef614bdb49920419d2752c041f978de9 Mon Sep 17 00:00:00 2001 From: wuooyun <30884739+wuooyun@users.noreply.github.com> Date: Wed, 12 Nov 2025 21:17:20 +0800 Subject: [PATCH] Modify path handling in web.rs Remove canonicalization of the file path. for fix download .tar files --- src/web.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web.rs b/src/web.rs index 4d1f231..e73eca3 100644 --- a/src/web.rs +++ b/src/web.rs @@ -35,7 +35,7 @@ async fn handle_tar( tail: web::Path, ) -> impl Responder { let relpath = PathBuf::from(tail.trim_end_matches('/')); - let fullpath = root.join(&relpath).canonicalize().unwrap(); + let fullpath = root.join(&relpath); // if a .tar already exists, just return it as-is let mut fullpath_tar = fullpath.clone();