Skip to content

Commit

Permalink
Fix content disposition format
Browse files Browse the repository at this point in the history
  • Loading branch information
james58899 committed Dec 17, 2024
1 parent b15bfca commit 3d45fe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/route/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3d45fe3

Please sign in to comment.