Skip to content

Commit

Permalink
std(media_types): change .ts content type to application/typescript (d…
Browse files Browse the repository at this point in the history
  • Loading branch information
zhmushan committed Apr 1, 2020
1 parent 578138a commit 3a0b617
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
7 changes: 3 additions & 4 deletions std/media_types/db_c50e0d1.json → std/media_types/db.json
Original file line number Diff line number Diff line change
Expand Up @@ -1537,6 +1537,9 @@
"application/tve-trigger": {
"source": "iana"
},
"application/typescript": {
"extensions": ["ts"]
},
"application/tzif": {
"source": "iana"
},
Expand Down Expand Up @@ -7718,10 +7721,6 @@
"video/mp2p": {
"source": "iana"
},
"video/mp2t": {
"source": "iana",
"extensions": ["ts"]
},
"video/mp4": {
"source": "iana",
"compressible": false,
Expand Down
2 changes: 1 addition & 1 deletion std/media_types/deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ interface DB {
};
}

import _db from "./db_c50e0d1.json";
import _db from "./db.json";
export const db: DB = _db;
1 change: 1 addition & 0 deletions std/media_types/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3a0b617

Please sign in to comment.