# HG changeset patch # User Sebastien Jodogne # Date 1604044824 -3600 # Node ID 9a01e0f89b6d38d1b15cf7b557ba6e38b1191005 # Parent 34de51e8c5fedc511da2dd74fa797308df9a364a ServeFolders plugin: mime type for ".map" file extension diff -r 34de51e8c5fe -r 9a01e0f89b6d OrthancServer/Plugins/Samples/ServeFolders/Plugin.cpp --- a/OrthancServer/Plugins/Samples/ServeFolders/Plugin.cpp Tue Oct 27 14:31:06 2020 +0100 +++ b/OrthancServer/Plugins/Samples/ServeFolders/Plugin.cpp Fri Oct 30 09:00:24 2020 +0100 @@ -62,16 +62,17 @@ extensions_["jpg"] = "image/jpeg"; extensions_["js"] = "application/javascript"; extensions_["json"] = "application/json"; + extensions_["map"] = "application/octet-stream"; // https://stackoverflow.com/a/19912684/881731 extensions_["nexe"] = "application/x-nacl"; extensions_["nmf"] = "application/json"; + extensions_["pdf"] = "application/pdf"; extensions_["pexe"] = "application/x-pnacl"; extensions_["png"] = "image/png"; extensions_["svg"] = "image/svg+xml"; extensions_["wasm"] = "application/wasm"; extensions_["woff"] = "application/x-font-woff"; + extensions_["woff2"] = "font/woff2"; extensions_["xml"] = "application/xml"; - extensions_["pdf"] = "application/pdf"; - extensions_["woff2"] = "font/woff2"; }