summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
Diffstat (limited to 'media')
-rw-r--r--media/mediaType.go4
-rw-r--r--media/mediaType_test.go4
2 files changed, 4 insertions, 4 deletions
diff --git a/media/mediaType.go b/media/mediaType.go
index 3ac3123ac..e47acb1e3 100644
--- a/media/mediaType.go
+++ b/media/mediaType.go
@@ -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"})
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"},