Skip to content

Commit

Permalink
lib/mime.js: update mime types.
Browse files Browse the repository at this point in the history
  • Loading branch information
chjj committed Dec 16, 2023
1 parent 0d9e24c commit c33a7e8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/mime.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,12 @@ const types = {
'torrent': ['application/x-bittorrent', false],
'txt': ['text/plain', true],
'ttf': ['font/ttf', false],
'wasm': ['application/wasm', false],
'wav': ['audio/wav', false],
'webm': ['video/webm', false],
'woff': ['font/x-woff', false],
'webp': ['image/webp', false],
'woff': ['font/woff', false],
'woff2': ['font/woff2', false],
'xhtml': ['application/xhtml+xml', true],
'xbl': ['application/xml', true],
'xml': ['application/xml', true],
Expand Down Expand Up @@ -102,11 +105,15 @@ const extensions = {
'application/x-tar': 'tar',
'application/x-bittorrent': 'torrent',
'font/ttf': 'ttf',
'application/wasm': 'wasm',
'audio/wav': 'wav',
'audio/wave': 'wav',
'video/webm': 'webm',
'audio/webm': 'webm',
'image/webp': 'webp',
'font/x-woff': 'woff',
'font/woff': 'woff',
'font/woff2': 'woff2',
'application/xhtml+xml': 'xhtml',
'application/xml': 'xsl',
'application/xslt+xml': 'xslt',
Expand Down

0 comments on commit c33a7e8

Please sign in to comment.