summaryrefslogtreecommitdiffstats
path: root/media/mediaType_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-10-05 09:26:30 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-10-26 10:38:27 +0200
commit588710a7acb5f68e14a1fdc07228c4083b2884d4 (patch)
tree7f48bf743b003bc1215dafdd41abdcc5c1e741fc /media/mediaType_test.go
parented930db2f075c7d9235a5b30b5f4657941630a72 (diff)
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
Diffstat (limited to 'media/mediaType_test.go')
-rw-r--r--media/mediaType_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/media/mediaType_test.go b/media/mediaType_test.go
index af7123cb5..2a1b48849 100644
--- a/media/mediaType_test.go
+++ b/media/mediaType_test.go
@@ -40,8 +40,8 @@ func TestDefaultTypes(t *testing.T) {
{SCSSType, "text", "x-scss", "scss", "text/x-scss", "text/x-scss"},
{CSVType, "text", "csv", "csv", "text/csv", "text/csv"},
{HTMLType, "text", "html", "html", "text/html", "text/html"},
- {JavascriptType, "application", "javascript", "js", "application/javascript", "application/javascript"},
- {TypeScriptType, "application", "typescript", "ts", "application/typescript", "application/typescript"},
+ {JavascriptType, "text", "javascript", "js", "text/javascript", "text/javascript"},
+ {TypeScriptType, "text", "typescript", "ts", "text/typescript", "text/typescript"},
{TSXType, "text", "tsx", "tsx", "text/tsx", "text/tsx"},
{JSXType, "text", "jsx", "jsx", "text/jsx", "text/jsx"},
{JSONType, "application", "json", "json", "application/json", "application/json"},