Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
2799:6e3a60b85da6 | 2800:dc7330089736 |
---|---|
96 void OrthancPeerStoreJob::GetPublicContent(Json::Value& value) | 96 void OrthancPeerStoreJob::GetPublicContent(Json::Value& value) |
97 { | 97 { |
98 SetOfInstancesJob::GetPublicContent(value); | 98 SetOfInstancesJob::GetPublicContent(value); |
99 | 99 |
100 Json::Value v; | 100 Json::Value v; |
101 peer_.ToJson(v, false /* don't include passwords */); | 101 peer_.Serialize(v, |
102 false /* allow simple format if possible */, | |
103 false /* don't include passwords */); | |
102 value["Peer"] = v; | 104 value["Peer"] = v; |
103 } | 105 } |
104 | 106 |
105 | 107 |
106 static const char* PEER = "Peer"; | 108 static const char* PEER = "Peer"; |
120 { | 122 { |
121 return false; | 123 return false; |
122 } | 124 } |
123 else | 125 else |
124 { | 126 { |
125 peer_.Serialize(target[PEER]); | 127 peer_.Serialize(target[PEER], |
128 true /* force advanced format */, | |
129 true /* include passwords */); | |
126 return true; | 130 return true; |
127 } | 131 } |
128 } | 132 } |
129 } | 133 } |