From 91cbca6b15725dc4281984ca43ece5a38c693168 Mon Sep 17 00:00:00 2001 From: Zynh Ludwig Date: Thu, 21 Nov 2024 16:39:23 -0800 Subject: [PATCH] feat: cache names no longer include .zip --- src/router/upload.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/router/upload.rs b/src/router/upload.rs index 6677062..d3d5ace 100644 --- a/src/router/upload.rs +++ b/src/router/upload.rs @@ -32,7 +32,7 @@ async fn upload_to_zip( ) -> Result { let cache_name = util::get_random_name(10); - let archive_path = Path::new(".cache/serve").join(format!("{}.zip", &cache_name)); + let archive_path = Path::new(".cache/serve").join(&cache_name); tracing::debug!("Zipping: {:?}", &archive_path);