Description: Fix build because of update in Orthanc framework
Author: Sebastien Jodogne <s.jodogne@orthanc-labs.com>
Forwarded: yes
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: OrthancWSI-1.0/Resources/Orthanc/Stone/OrthancHttpConnection.cpp
===================================================================
--- OrthancWSI-1.0.orig/Resources/Orthanc/Stone/OrthancHttpConnection.cpp
+++ OrthancWSI-1.0/Resources/Orthanc/Stone/OrthancHttpConnection.cpp
@@ -66,8 +66,9 @@ namespace OrthancStone
 
     client_.SetMethod(Orthanc::HttpMethod_Post);
     client_.SetUrl(url_ + uri);
-    client_.SetBody(body);
+    client_.SetExternalBody(body);
     client_.ApplyAndThrowException(result);
+    client_.ClearBody();
   }
 
 
@@ -79,8 +80,9 @@ namespace OrthancStone
 
     client_.SetMethod(Orthanc::HttpMethod_Put);
     client_.SetUrl(url_ + uri);
-    client_.SetBody(body);
+    client_.SetExternalBody(body);
     client_.ApplyAndThrowException(result);
+    client_.ClearBody();
   }
 
 
