comparison 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
comparison
equal deleted inserted replaced
4512:cff7fdfc83a4 4513:1f455b86b054
459 else 459 else
460 { 460 {
461 // This path allows one to avoid the JSON decoding if no 461 // This path allows one to avoid the JSON decoding if no
462 // simplification is asked, and if no "ignore-length" argument 462 // simplification is asked, and if no "ignore-length" argument
463 // is present 463 // is present
464 std::string full; 464 Json::Value full;
465 context.ReadDicomAsJson(full, publicId); 465 context.ReadDicomAsJson(full, publicId);
466 call.GetOutput().AnswerBuffer(full, MimeType_Json); 466 call.GetOutput().AnswerJson(full);
467 } 467 }
468 } 468 }
469 469
470 470
471 static void GetInstanceTagsBis(RestApiGetCall& call) 471 static void GetInstanceTagsBis(RestApiGetCall& call)