diff --git a/lib/mime.js b/lib/mime.js index 3fcf621..6e7fc6d 100644 --- a/lib/mime.js +++ b/lib/mime.js @@ -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], @@ -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',