correct content type for svg

This commit is contained in:
emilis 2025-10-06 22:41:10 +01:00
parent f034656bef
commit 1c6321322f
No known key found for this signature in database
1 changed files with 2 additions and 0 deletions

View File

@ -193,6 +193,8 @@ async fn handle_http_static(req: Request<axum::body::Body>) -> 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")