1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-08 20:41:57 +00:00

README: add two links for the chinese documents, based on #2043

This commit is contained in:
Gerasimos (Makis) Maropoulos
2023-01-27 19:20:14 +02:00
parent 605b6e44f0
commit bb3d5f21d6
5 changed files with 10 additions and 7 deletions

View File

@@ -584,7 +584,7 @@ func TypeByExtension(ext string) (typ string) {
}
// mime.TypeByExtension returns as text/plain; | charset=utf-8 the static .js (not always)
if ext == ".js" && (typ == context.ContentJavascriptHeaderValue || typ == context.ContentTextHeaderValue) {
if ext == ".js" || ext == ".mjs" && (typ == context.ContentJavascriptHeaderValue || typ == context.ContentTextHeaderValue) {
typ = context.ContentJavascriptHeaderValue
}