From b00fd674e2fff4cb2fb122c5951baf3631fc8dc5 Mon Sep 17 00:00:00 2001 From: liquidev Date: Mon, 25 Mar 2024 20:03:10 +0100 Subject: [PATCH] add MIME for SVG --- crates/treehouse/src/cli/serve.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/treehouse/src/cli/serve.rs b/crates/treehouse/src/cli/serve.rs index 94647a0..6ab4ef2 100644 --- a/crates/treehouse/src/cli/serve.rs +++ b/crates/treehouse/src/cli/serve.rs @@ -86,6 +86,7 @@ fn get_content_type(path: &str) -> Option<&'static str> { _ if path.ends_with(".html") => Some("text/html"), _ if path.ends_with(".js") => Some("text/javascript"), _ if path.ends_with(".woff2") => Some("font/woff2"), + _ if path.ends_with(".svg") => Some("image/svg+xml"), _ => None, } }