From 4c5c87958347e504ac428b4f385f951021cad52a Mon Sep 17 00:00:00 2001 From: milky0217 Date: Mon, 20 Jul 2026 09:36:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20static=5Ffiles=20=E6=B7=BB=E5=8A=A0=20tx?= =?UTF-8?q?t=20=E7=9A=84=20Content-Type=20=E6=98=A0=E5=B0=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/handlers/static_files.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/handlers/static_files.rs b/src/handlers/static_files.rs index 50c433b..62f4135 100644 --- a/src/handlers/static_files.rs +++ b/src/handlers/static_files.rs @@ -17,6 +17,7 @@ pub async fn serve_static_files(path: web::Path) -> 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",