Mercurial > hg > orthanc
diff OrthancServer/ServerJobs/OrthancPeerStoreJob.cpp @ 2800:dc7330089736
"OrthancPeers" configuration option now allows to specify HTTP headers
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 23 Aug 2018 13:11:48 +0200 |
parents | eaf10085ffa1 |
children | 7cfc8d266f41 |
line wrap: on
line diff
--- a/OrthancServer/ServerJobs/OrthancPeerStoreJob.cpp Wed Aug 22 16:55:07 2018 +0200 +++ b/OrthancServer/ServerJobs/OrthancPeerStoreJob.cpp Thu Aug 23 13:11:48 2018 +0200 @@ -98,7 +98,9 @@ SetOfInstancesJob::GetPublicContent(value); Json::Value v; - peer_.ToJson(v, false /* don't include passwords */); + peer_.Serialize(v, + false /* allow simple format if possible */, + false /* don't include passwords */); value["Peer"] = v; } @@ -122,7 +124,9 @@ } else { - peer_.Serialize(target[PEER]); + peer_.Serialize(target[PEER], + true /* force advanced format */, + true /* include passwords */); return true; } }