@@ -963,7 +963,31 @@ public static byte[] GetByteArray(string text, Encoding encoding, bool includePr
963963 { ".xtp" , "application/octet-stream" } ,
964964 { ".xwd" , "image/x-xwindowdump" } ,
965965 { ".z" , "application/x-compress" } ,
966- { ".zip" , "application/x-zip-compressed" }
966+ { ".zip" , "application/x-zip-compressed" } ,
967+
968+ // Recently added entries from
969+ // https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Complete_list_of_MIME_types
970+ // https://cs.chromium.org/chromium/src/net/base/mime_util.cc?sq=package:chromium&g=0&l=147
971+ { ".wasm" , "application/wasm" } ,
972+ { ".ogg" , "audio/ogg" } ,
973+ { ".oga" , "audio/ogg" } ,
974+ { ".ogv" , "video/ogg" } ,
975+ { ".opus" , "audio/opus" } ,
976+ { ".webm" , "video/webm" } ,
977+ { ".weba" , "audio/webm" } ,
978+ //https://developers.google.com/speed/webp
979+ { ".webp" , "image/webp" } ,
980+ { ".epub" , "application/epub+zip" } ,
981+ // We'll map .woff to font/woff as application/font-woff is deprecated
982+ // https://tools.ietf.org/html/rfc8081#section-4.4.5
983+ // Deprecated Alias: The existing registration "application/font-woff" is deprecated in favor of "font/woff".
984+ { ".woff" , "font/woff" } ,
985+ // https://www.w3.org/TR/WOFF2/#IMT
986+ // https://tools.ietf.org/html/rfc8081#section-4.4.6
987+ { ".woff2" , "font/woff2" } ,
988+ //TODO: Mapping should be updated (exists above)
989+ //{".ttf", "font/ttf"},
990+ { ".otf" , "font/otf" }
967991 } ;
968992
969993 /// <summary>
0 commit comments