# HG changeset patch # User Alain Mazy # Date 1704275628 -3600 # Node ID bf4e5434567c4d2e553c823f9679e3366bba3959 # Parent 52e83e94eb3723232d68828c533a66b4e0f99238 Fixed wrong MIME type for app-config.js that prevents the OHIF viewer from loading with Orthanc 1.12.2 diff -r 52e83e94eb37 -r bf4e5434567c NEWS --- 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) ======================== diff -r 52e83e94eb37 -r bf4e5434567c Sources/Plugin.cpp --- 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