diff OrthancServer/OrthancRestApi/OrthancRestApi.cpp @ 3401:962e5f00744b

cont
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 07 Jun 2019 14:58:27 +0200
parents e44e0127e553
children 22bdb9c91ebf
line wrap: on
line diff
--- a/OrthancServer/OrthancRestApi/OrthancRestApi.cpp	Fri Jun 07 14:26:09 2019 +0200
+++ b/OrthancServer/OrthancRestApi/OrthancRestApi.cpp	Fri Jun 07 14:58:27 2019 +0200
@@ -118,7 +118,8 @@
     LOG(INFO) << "Receiving a DICOM file of " << call.GetBodySize() << " bytes through HTTP";
 
     // TODO Remove unneccessary memcpy
-    std::string postData(call.GetBodyData(), call.GetBodySize());
+    std::string postData;
+    call.BodyToString(postData);
 
     DicomInstanceToStore toStore;
     toStore.SetOrigin(DicomInstanceOrigin::FromRest(call));
@@ -168,7 +169,7 @@
                               const UriComponents& uri,
                               const Arguments& headers,
                               const GetArguments& getArguments,
-                              const char* bodyData,
+                              const void* bodyData,
                               size_t bodySize)
   {
     MetricsRegistry::Timer timer(context_.GetMetricsRegistry(), "orthanc_rest_api_duration_ms");