From e26d9f76171c987112d5d6db292446819a8393e2 Mon Sep 17 00:00:00 2001 From: John Date: Wed, 27 Mar 2019 00:41:56 -0500 Subject: [PATCH] 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 --- src/mime/type.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mime/type.go b/src/mime/type.go index 64e26ffb7c..3a8fe4447f 100644 --- a/src/mime/type.go +++ b/src/mime/type.go @@ -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