changeset 4262:9a01e0f89b6d

ServeFolders plugin: mime type for ".map" file extension
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 30 Oct 2020 09:00:24 +0100
parents 34de51e8c5fe
children 61a2bedbae80 f9eaf14d3d19
files OrthancServer/Plugins/Samples/ServeFolders/Plugin.cpp
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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";
 }