diff --git a/src/mime/type.go b/src/mime/type.go index 53bf41e2e43..64e26ffb7cc 100644 --- a/src/mime/type.go +++ b/src/mime/type.go @@ -62,7 +62,7 @@ var builtinTypesLower = map[string]string{ ".htm": "text/html; charset=utf-8", ".html": "text/html; charset=utf-8", ".jpg": "image/jpeg", - ".js": "application/x-javascript", + ".js": "application/javascript", ".wasm": "application/wasm", ".pdf": "application/pdf", ".png": "image/png",