Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislearn committed Oct 1, 2024
1 parent cf9b727 commit 41108ce
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions crates/core/src/fs/named_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -468,10 +468,8 @@ impl NamedFile {
}
}
}
if !res.headers().contains_key(CONTENT_TYPE) {
res.headers_mut()
.insert(CONTENT_TYPE, self.content_type.clone());
}
res.headers_mut()
.insert(CONTENT_TYPE, self.content_type.clone());
if let Some(lm) = last_modified {
res.headers_mut().typed_insert(LastModified::from(lm));
}
Expand Down

0 comments on commit 41108ce

Please sign in to comment.