Mercurial > hg > orthanc-wsi
comparison Resources/Orthanc/Stone/OrthancHttpConnection.cpp @ 237:c2863f5204a8
fix build because of update in Orthanc framework
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 05 May 2021 14:34:07 +0200 |
parents | 1e864138f0da |
children | 476d5204d08b |
comparison
equal
deleted
inserted
replaced
236:b0ee417b667a | 237:c2863f5204a8 |
---|---|
64 { | 64 { |
65 boost::mutex::scoped_lock lock(mutex_); | 65 boost::mutex::scoped_lock lock(mutex_); |
66 | 66 |
67 client_.SetMethod(Orthanc::HttpMethod_Post); | 67 client_.SetMethod(Orthanc::HttpMethod_Post); |
68 client_.SetUrl(url_ + uri); | 68 client_.SetUrl(url_ + uri); |
69 client_.SetBody(body); | 69 client_.SetExternalBody(body); |
70 client_.ApplyAndThrowException(result); | 70 client_.ApplyAndThrowException(result); |
71 client_.ClearBody(); | |
71 } | 72 } |
72 | 73 |
73 | 74 |
74 void OrthancHttpConnection::RestApiPut(std::string& result, | 75 void OrthancHttpConnection::RestApiPut(std::string& result, |
75 const std::string& uri, | 76 const std::string& uri, |
77 { | 78 { |
78 boost::mutex::scoped_lock lock(mutex_); | 79 boost::mutex::scoped_lock lock(mutex_); |
79 | 80 |
80 client_.SetMethod(Orthanc::HttpMethod_Put); | 81 client_.SetMethod(Orthanc::HttpMethod_Put); |
81 client_.SetUrl(url_ + uri); | 82 client_.SetUrl(url_ + uri); |
82 client_.SetBody(body); | 83 client_.SetExternalBody(body); |
83 client_.ApplyAndThrowException(result); | 84 client_.ApplyAndThrowException(result); |
85 client_.ClearBody(); | |
84 } | 86 } |
85 | 87 |
86 | 88 |
87 void OrthancHttpConnection::RestApiDelete(const std::string& uri) | 89 void OrthancHttpConnection::RestApiDelete(const std::string& uri) |
88 { | 90 { |