Mercurial > hg > orthanc-dicomweb
changeset 575:be50622282fb
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 27 Jun 2023 18:41:53 +0200 |
parents | d16e82b27c70 |
children | 26f7f795e379 |
files | Plugin/Configuration.cpp Plugin/WadoRsRetrieveRendered.cpp UnitTestsSources/UnitTestsMain.cpp |
diffstat | 3 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/Plugin/Configuration.cpp Tue Jun 27 18:14:45 2023 +0200 +++ b/Plugin/Configuration.cpp Tue Jun 27 18:41:53 2023 +0200 @@ -79,7 +79,7 @@ assert(tokens.size() > 0); application = tokens[0]; - Orthanc::Toolbox::StripSpaces(application); + application = Orthanc::Toolbox::StripSpaces(application); Orthanc::Toolbox::ToLowerCase(application); boost::regex pattern("\\s*([^=]+)\\s*=\\s*(([^=\"]+)|\"([^=\"]+)\")\\s*");
--- a/Plugin/WadoRsRetrieveRendered.cpp Tue Jun 27 18:14:45 2023 +0200 +++ b/Plugin/WadoRsRetrieveRendered.cpp Tue Jun 27 18:41:53 2023 +0200 @@ -935,7 +935,7 @@ tags[PHOTOMETRIC_INTERPRETATION].type() == Json::stringValue) { std::string s = tags[PHOTOMETRIC_INTERPRETATION].asString(); - Orthanc::Toolbox::StripSpaces(s); + s = Orthanc::Toolbox::StripSpaces(s); if (s == "MONOCHROME1") { invert = true;
--- a/UnitTestsSources/UnitTestsMain.cpp Tue Jun 27 18:14:45 2023 +0200 +++ b/UnitTestsSources/UnitTestsMain.cpp Tue Jun 27 18:41:53 2023 +0200 @@ -33,12 +33,12 @@ // TODO => Remove this test (now in Orthanc core) -TEST(ContentType, Parse) +TEST(Toolbox, ParseContentType) { std::string c; std::map<std::string, std::string> a; - ParseContentType(c, a, "Multipart/Related; TYPE=Application/Dicom; Boundary=heLLO"); + ParseContentType(c, a, " Multipart/Related ; TYPE=Application/Dicom; Boundary=heLLO"); ASSERT_EQ(c, "multipart/related"); ASSERT_EQ(2u, a.size()); ASSERT_EQ(a["type"], "Application/Dicom");