Serve JS files with utf-8 charset too

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
XhmikosR 2019-12-07 13:46:14 +02:00
parent ca7a5bc0fe
commit 54d0b9a1b8
2 changed files with 2 additions and 2 deletions

View file

@ -49,7 +49,7 @@ mimetype.assign = ( ".png" => "image/png",
".jpeg" => "image/jpeg", ".jpeg" => "image/jpeg",
".html" => "text/html", ".html" => "text/html",
".css" => "text/css; charset=utf-8", ".css" => "text/css; charset=utf-8",
".js" => "application/javascript", ".js" => "application/javascript; charset=utf-8",
".json" => "application/json", ".json" => "application/json",
".txt" => "text/plain", ".txt" => "text/plain",
".svg" => "image/svg+xml" ) ".svg" => "image/svg+xml" )

View file

@ -51,7 +51,7 @@ mimetype.assign = ( ".png" => "image/png",
".jpeg" => "image/jpeg", ".jpeg" => "image/jpeg",
".html" => "text/html", ".html" => "text/html",
".css" => "text/css; charset=utf-8", ".css" => "text/css; charset=utf-8",
".js" => "application/javascript", ".js" => "application/javascript; charset=utf-8",
".json" => "application/json", ".json" => "application/json",
".txt" => "text/plain", ".txt" => "text/plain",
".svg" => "image/svg+xml" ) ".svg" => "image/svg+xml" )