correct content type for svg
This commit is contained in:
parent
f034656bef
commit
1c6321322f
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in New Issue