0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-02-12 16:59:32 -05:00

std(media_types): change .ts content type to application/typescript (#4563)

This commit is contained in:
木杉 2020-04-02 03:04:36 +08:00 committed by GitHub
parent 578138a930
commit 3a0b617503
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View file

@ -1537,6 +1537,9 @@
"application/tve-trigger": { "application/tve-trigger": {
"source": "iana" "source": "iana"
}, },
"application/typescript": {
"extensions": ["ts"]
},
"application/tzif": { "application/tzif": {
"source": "iana" "source": "iana"
}, },
@ -7718,10 +7721,6 @@
"video/mp2p": { "video/mp2p": {
"source": "iana" "source": "iana"
}, },
"video/mp2t": {
"source": "iana",
"extensions": ["ts"]
},
"video/mp4": { "video/mp4": {
"source": "iana", "source": "iana",
"compressible": false, "compressible": false,

View file

@ -11,5 +11,5 @@ interface DB {
}; };
} }
import _db from "./db_c50e0d1.json"; import _db from "./db.json";
export const db: DB = _db; export const db: DB = _db;

View file

@ -27,6 +27,7 @@ test(function testContentType(): void {
"text/html; charset=iso-8859-1" "text/html; charset=iso-8859-1"
); );
assertEquals(contentType(".htaccess"), undefined); assertEquals(contentType(".htaccess"), undefined);
assertEquals(contentType("file.ts"), "application/typescript");
}); });
test(function testExtension(): void { test(function testExtension(): void {