Skip to content

Commit

Permalink
chore(ui): fix content type header in response builder
Browse files Browse the repository at this point in the history
  • Loading branch information
wsxiaoys committed May 5, 2024
1 parent d0e813b commit 0af1e25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ee/tabby-webserver/src/routes/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ where
let mime = mime_guess::from_path(&path).first_or_octet_stream();
let mut builder =
Response::builder().header(header::CACHE_CONTROL, "public, max-age=604800");
if path.ends_with(".html") {
if !path.ends_with(".html") {
builder = builder.header(header::CONTENT_TYPE, mime.as_ref())
};
builder
Expand Down

0 comments on commit 0af1e25

Please sign in to comment.