fix: static_files 添加 txt 的 Content-Type 映射

This commit is contained in:
2026-07-20 09:36:00 +08:00
parent 70bb63be8d
commit 4c5c879583

View File

@@ -17,6 +17,7 @@ pub async fn serve_static_files(path: web::Path<String>) -> impl Responder {
Some("gif") => "image/gif",
Some("svg") => "image/svg+xml",
Some("webp") => "image/webp",
Some("txt") => "text/plain",
Some("css") => "text/css",
Some("js") => "application/javascript",
Some("html") => "text/html",