From 3d45fe3349ea5eced16832f6883c0a081556d917 Mon Sep 17 00:00:00 2001 From: james58899 Date: Tue, 17 Dec 2024 09:39:29 +0000 Subject: [PATCH] Fix content disposition format --- src/route/cache.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/route/cache.rs b/src/route/cache.rs index d04d079..b3c38a4 100644 --- a/src/route/cache.rs +++ b/src/route/cache.rs @@ -58,7 +58,7 @@ pub(super) async fn hath( }; let file_size = info.size() as u64; let content_type = HeaderValue::from_maybe_shared(info.mime_type().to_string()).unwrap(); - let content_disposition = HeaderValue::from_maybe_shared(format!("inline;filename=\"{file_name}\"")).unwrap_or(DEFAULT_CD); + let content_disposition = HeaderValue::from_maybe_shared(format!("inline; filename=\"{file_name}\"")).unwrap_or(DEFAULT_CD); // Check cache hit if let Some(file) = data.cache_manager.get_file(&info).await {