From 1c6321322f27dc8cb3cf75118c780a425e67174b Mon Sep 17 00:00:00 2001 From: emilis Date: Mon, 6 Oct 2025 22:41:10 +0100 Subject: [PATCH] correct content type for svg --- werewolves-server/src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/werewolves-server/src/main.rs b/werewolves-server/src/main.rs index abe58dd..7c1898a 100644 --- a/werewolves-server/src/main.rs +++ b/werewolves-server/src/main.rs @@ -193,6 +193,8 @@ async fn handle_http_static(req: Request) -> impl IntoResponse "text/css".to_string() } else if path.ends_with(".wasm") { "application/wasm".to_string() + } else if path.ends_with(".svg") { + "image/svg+xml".to_string() } else { file.sniff_mime_type() .unwrap_or("application/octet-stream")