diff Sources/Plugin.cpp @ 27:bf4e5434567c

Fixed wrong MIME type for app-config.js that prevents the OHIF viewer from loading with Orthanc 1.12.2
author Alain Mazy <am@osimis.io>
date Wed, 03 Jan 2024 10:53:48 +0100
parents 4ef286d0f78e
children 36049c04ee27
line wrap: on
line diff
--- a/Sources/Plugin.cpp	Wed Dec 13 08:59:33 2023 +0100
+++ b/Sources/Plugin.cpp	Wed Jan 03 10:53:48 2024 +0100
@@ -531,7 +531,7 @@
     system = Orthanc::Toolbox::SubstituteVariables(system, dictionary);
 
     std::string s = (userConfiguration_ + "\n" + system);
-    OrthancPluginAnswerBuffer(context, output, s.c_str(), s.size(), "application/json");
+    OrthancPluginAnswerBuffer(context, output, s.c_str(), s.size(), "text/javascript");
   }
   else if (uri == "" ||      // Study list
            uri == "tmtv" ||  // Total metabolic tumor volume