Merge pull request #3027 from XhmikosR/patch-1

Serve JS files with utf-8 charset too
This commit is contained in:
Dan Schaper 2020-05-05 12:29:27 -07:00 committed by GitHub
commit 742d802940
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

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

View file

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