changeset 6216:e1bc2e729c1c

RestApiClient: forward body to core
author Alain Mazy <am@orthanc.team>
date Wed, 02 Jul 2025 18:13:46 +0200
parents c6ae4244f075
children b56c1db69d0d
files OrthancServer/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancServer/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp	Mon Jun 30 21:45:06 2025 +0200
+++ b/OrthancServer/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp	Wed Jul 02 18:13:46 2025 +0200
@@ -4212,6 +4212,11 @@
     {
       path_ += "?" + getArguments;
     }
+
+    if (request->bodySize > 0 && request->body != NULL)
+    {
+      requestBody_.assign(reinterpret_cast<const char*>(request->body), request->bodySize);
+    }
   }
 #endif