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()
|
"text/css".to_string()
|
||||||
} else if path.ends_with(".wasm") {
|
} else if path.ends_with(".wasm") {
|
||||||
"application/wasm".to_string()
|
"application/wasm".to_string()
|
||||||
|
} else if path.ends_with(".svg") {
|
||||||
|
"image/svg+xml".to_string()
|
||||||
} else {
|
} else {
|
||||||
file.sniff_mime_type()
|
file.sniff_mime_type()
|
||||||
.unwrap_or("application/octet-stream")
|
.unwrap_or("application/octet-stream")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue