diff OrthancServer/Sources/OrthancRestApi/OrthancRestResources.cpp @ 4513:1f455b86b054

simplification in ServerContext
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 12 Feb 2021 12:13:19 +0100
parents 68f52897c119
children 5b929e6b3c36
line wrap: on
line diff
--- a/OrthancServer/Sources/OrthancRestApi/OrthancRestResources.cpp	Fri Feb 12 11:33:16 2021 +0100
+++ b/OrthancServer/Sources/OrthancRestApi/OrthancRestResources.cpp	Fri Feb 12 12:13:19 2021 +0100
@@ -461,9 +461,9 @@
       // This path allows one to avoid the JSON decoding if no
       // simplification is asked, and if no "ignore-length" argument
       // is present
-      std::string full;
+      Json::Value full;
       context.ReadDicomAsJson(full, publicId);
-      call.GetOutput().AnswerBuffer(full, MimeType_Json);
+      call.GetOutput().AnswerJson(full);
     }
   }