changeset 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 52e83e94eb37
children 6fc06e1c5f57
files NEWS Sources/Plugin.cpp
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/NEWS	Wed Dec 13 08:59:33 2023 +0100
+++ b/NEWS	Wed Jan 03 10:53:48 2024 +0100
@@ -1,6 +1,8 @@
 Pending changes in the mainline
 ===============================
 
+* Fixed wrong MIME type for app-config.js that prevents the OHIF viewer
+  from loading with Orthanc 1.12.2
 
 Version 1.1 (2023-11-24)
 ========================
--- 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