Mercurial > hg > orthanc
comparison OrthancServer/OrthancRestApi/OrthancRestModalities.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 | 6e3a60b85da6 |
children | 3ee82c7313e7 |
comparison
equal
deleted
inserted
replaced
2799:6e3a60b85da6 | 2800:dc7330089736 |
---|---|
981 Json::Value json; | 981 Json::Value json; |
982 Json::Reader reader; | 982 Json::Reader reader; |
983 if (reader.parse(call.GetBodyData(), call.GetBodyData() + call.GetBodySize(), json)) | 983 if (reader.parse(call.GetBodyData(), call.GetBodyData() + call.GetBodySize(), json)) |
984 { | 984 { |
985 WebServiceParameters peer; | 985 WebServiceParameters peer; |
986 peer.FromJson(json); | 986 peer.Unserialize(json); |
987 Configuration::UpdatePeer(call.GetUriComponent("id", ""), peer); | 987 Configuration::UpdatePeer(call.GetUriComponent("id", ""), peer); |
988 call.GetOutput().AnswerBuffer("", "text/plain"); | 988 call.GetOutput().AnswerBuffer("", "text/plain"); |
989 } | 989 } |
990 } | 990 } |
991 | 991 |