diff 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
line wrap: on
line diff
--- a/Resources/Orthanc/Stone/OrthancHttpConnection.cpp	Tue Feb 23 10:27:58 2021 +0100
+++ b/Resources/Orthanc/Stone/OrthancHttpConnection.cpp	Wed May 05 14:34:07 2021 +0200
@@ -66,8 +66,9 @@
 
     client_.SetMethod(Orthanc::HttpMethod_Post);
     client_.SetUrl(url_ + uri);
-    client_.SetBody(body);
+    client_.SetExternalBody(body);
     client_.ApplyAndThrowException(result);
+    client_.ClearBody();
   }
 
 
@@ -79,8 +80,9 @@
 
     client_.SetMethod(Orthanc::HttpMethod_Put);
     client_.SetUrl(url_ + uri);
-    client_.SetBody(body);
+    client_.SetExternalBody(body);
     client_.ApplyAndThrowException(result);
+    client_.ClearBody();
   }