diff options
author | 木杉 <zhmushan@qq.com> | 2020-04-02 03:04:36 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-01 15:04:36 -0400 |
commit | 3a0b617503f4c81fb9773bd99c898270b98b9b5a (patch) | |
tree | cdb6b28545e960a3d6cc1aa7473bac348dd90206 | |
parent | 578138a930b70057de61d257afad3011db15b1b1 (diff) |
std(media_types): change .ts content type to application/typescript (#4563)
-rw-r--r-- | std/media_types/db.json (renamed from std/media_types/db_c50e0d1.json) | 7 | ||||
-rw-r--r-- | std/media_types/deps.ts | 2 | ||||
-rw-r--r-- | std/media_types/test.ts | 1 |
3 files changed, 5 insertions, 5 deletions
diff --git a/std/media_types/db_c50e0d1.json b/std/media_types/db.json index 8444e8b39..513d1bd5a 100644 --- a/std/media_types/db_c50e0d1.json +++ b/std/media_types/db.json @@ -1537,6 +1537,9 @@ "application/tve-trigger": { "source": "iana" }, + "application/typescript": { + "extensions": ["ts"] + }, "application/tzif": { "source": "iana" }, @@ -7718,10 +7721,6 @@ "video/mp2p": { "source": "iana" }, - "video/mp2t": { - "source": "iana", - "extensions": ["ts"] - }, "video/mp4": { "source": "iana", "compressible": false, diff --git a/std/media_types/deps.ts b/std/media_types/deps.ts index 2a56d2079..b09c25817 100644 --- a/std/media_types/deps.ts +++ b/std/media_types/deps.ts @@ -11,5 +11,5 @@ interface DB { }; } -import _db from "./db_c50e0d1.json"; +import _db from "./db.json"; export const db: DB = _db; diff --git a/std/media_types/test.ts b/std/media_types/test.ts index c3caf71df..0bf39e298 100644 --- a/std/media_types/test.ts +++ b/std/media_types/test.ts @@ -27,6 +27,7 @@ test(function testContentType(): void { "text/html; charset=iso-8859-1" ); assertEquals(contentType(".htaccess"), undefined); + assertEquals(contentType("file.ts"), "application/typescript"); }); test(function testExtension(): void { |