From d773bcea027b50711e2ae9b5cc00645b6e70ca5c Mon Sep 17 00:00:00 2001 From: Chrislearn Young Date: Tue, 5 Nov 2024 11:22:26 +0800 Subject: [PATCH] test --- crates/core/src/fs/named_file.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/core/src/fs/named_file.rs b/crates/core/src/fs/named_file.rs index b6d94b118..7b167f971 100644 --- a/crates/core/src/fs/named_file.rs +++ b/crates/core/src/fs/named_file.rs @@ -446,12 +446,14 @@ impl NamedFile { if self.flags.contains(Flag::ContentDisposition) { if let Some(content_disposition) = self.content_disposition.take() { + println!("=============content_disposition 0 {}", content_disposition.to_str().unwrap()); res.headers_mut() .insert(CONTENT_DISPOSITION, content_disposition); } else if !res.headers().contains_key(CONTENT_DISPOSITION) { // skip to set CONTENT_DISPOSITION header if it is already set. match build_content_disposition(&self.path, &self.content_type, None, None) { Ok(content_disposition) => { + println!("=============content_disposition 1 {}", content_disposition.to_str().unwrap()); res.headers_mut() .insert(CONTENT_DISPOSITION, content_disposition); }