mirror of
https://github.com/golang/go
synced 2024-11-12 07:10:22 -07:00
add javascript module mime type(.mjs)
Resources: https://developers.google.com/web/fundamentals/primers/modules https://html.spec.whatwg.org/multipage/scripting.html#scriptingLanguages:javascript-mime-type
This commit is contained in:
parent
39a51a4b0d
commit
e26d9f7617
@ -68,6 +68,7 @@ var builtinTypesLower = map[string]string{
|
||||
".png": "image/png",
|
||||
".svg": "image/svg+xml",
|
||||
".xml": "text/xml; charset=utf-8",
|
||||
".mjs": "text/javascript",
|
||||
}
|
||||
|
||||
var once sync.Once // guards initMime
|
||||
|
Loading…
Reference in New Issue
Block a user