Mercurial > hg > orthanc
diff OrthancServer/OrthancRestApi/OrthancRestResources.cpp @ 2127:bfa92c9328d7
cleaning up
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 07 Nov 2016 13:59:36 +0100 |
parents | 2b1520efa282 |
children | 9329ba17a069 |
line wrap: on
line diff
--- a/OrthancServer/OrthancRestApi/OrthancRestResources.cpp Mon Nov 07 13:47:21 2016 +0100 +++ b/OrthancServer/OrthancRestApi/OrthancRestResources.cpp Mon Nov 07 13:59:36 2016 +0100 @@ -215,7 +215,9 @@ } else { - context.AnswerAttachment(call.GetOutput(), publicId, FileContentType_DicomAsJson); + std::string full; + context.ReadDicomAsJson(full, publicId); + call.GetOutput().AnswerBuffer(full, "application/json"); } }