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:
parent
578138a930
commit
3a0b617503
3 changed files with 5 additions and 5 deletions
|
@ -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,
|
|
@ -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;
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Reference in a new issue