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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user