Mercurial > hg > orthanc
diff PalantirServer/PalantirRestApi.cpp @ 34:96e57b863dd9
option to disallow remote access
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 30 Aug 2012 11:22:21 +0200 |
parents | 3a584803783e |
children | f6d12037f886 |
line wrap: on
line diff
--- a/PalantirServer/PalantirRestApi.cpp Thu Aug 30 09:35:38 2012 +0200 +++ b/PalantirServer/PalantirRestApi.cpp Thu Aug 30 11:22:21 2012 +0200 @@ -49,7 +49,7 @@ } is.setEos(); - printf("[%d]\n", postData.size()); + //printf("[%d]\n", postData.size()); DcmFileFormat dicomFile; if (dicomFile.read(is).good()) @@ -467,7 +467,8 @@ else if (uri.size() == 3 && uri[0] == "instances" && (uri[2] == "file" || - uri[2] == "all-tags")) + uri[2] == "tags" || + uri[2] == "named-tags")) { std::string fileUuid, contentType; if (uri[2] == "file") @@ -475,7 +476,8 @@ existingResource = index_.GetDicomFile(fileUuid, uri[1]); contentType = "application/dicom"; } - else + else if (uri[2] == "tags" || + uri[2] == "named-tags") { existingResource = index_.GetJsonFile(fileUuid, uri[1]); contentType = "application/json";