mirror of
https://github.com/denoland/deno.git
synced 2025-02-01 20:25:12 -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": {
|
||||
"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,
|
|
@ -11,5 +11,5 @@ interface DB {
|
|||
};
|
||||
}
|
||||
|
||||
import _db from "./db_c50e0d1.json";
|
||||
import _db from "./db.json";
|
||||
export const db: DB = _db;
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue