media: Rename application/javascript, application/typescript to text/javascript etc.

The former is deprecated.

See https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
See https://discourse.gohugo.io/t/mime-type-for-javascript-is-now-text-javascript/40813
This commit is contained in:
Bjørn Erik Pedersen
2022-10-05 09:26:30 +02:00
parent ed930db2f0
commit 588710a7ac
3 changed files with 8 additions and 8 deletions

View File

@@ -230,8 +230,8 @@ var (
SASSType = newMediaType("text", "x-sass", []string{"sass"})
CSVType = newMediaType("text", "csv", []string{"csv"})
HTMLType = newMediaType("text", "html", []string{"html"})
JavascriptType = newMediaType("application", "javascript", []string{"js", "jsm", "mjs"})
TypeScriptType = newMediaType("application", "typescript", []string{"ts"})
JavascriptType = newMediaType("text", "javascript", []string{"js", "jsm", "mjs"})
TypeScriptType = newMediaType("text", "typescript", []string{"ts"})
TSXType = newMediaType("text", "tsx", []string{"tsx"})
JSXType = newMediaType("text", "jsx", []string{"jsx"})