Mercurial > hg > orthanc-ohif
comparison 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 |
comparison
equal
deleted
inserted
replaced
26:52e83e94eb37 | 27:bf4e5434567c |
---|---|
529 dictionary["USE_DICOM_WEB"] = (dataSource_ == DataSource_DicomWeb ? "true" : "false"); | 529 dictionary["USE_DICOM_WEB"] = (dataSource_ == DataSource_DicomWeb ? "true" : "false"); |
530 | 530 |
531 system = Orthanc::Toolbox::SubstituteVariables(system, dictionary); | 531 system = Orthanc::Toolbox::SubstituteVariables(system, dictionary); |
532 | 532 |
533 std::string s = (userConfiguration_ + "\n" + system); | 533 std::string s = (userConfiguration_ + "\n" + system); |
534 OrthancPluginAnswerBuffer(context, output, s.c_str(), s.size(), "application/json"); | 534 OrthancPluginAnswerBuffer(context, output, s.c_str(), s.size(), "text/javascript"); |
535 } | 535 } |
536 else if (uri == "" || // Study list | 536 else if (uri == "" || // Study list |
537 uri == "tmtv" || // Total metabolic tumor volume | 537 uri == "tmtv" || // Total metabolic tumor volume |
538 uri == "viewer") // Default viewer (including MPR) | 538 uri == "viewer") // Default viewer (including MPR) |
539 { | 539 { |