# HG changeset patch # User Sebastien Jodogne # Date 1588847856 -7200 # Node ID 32e95d28efb2baf26bf5675d20ec661985af7c20 # Parent 104e27133ebd5114ce18531aab4cc4994c30d7fd# Parent fe0e4ef52a7226e622fe6ec929fb228ee406ae9a integration mainline->default diff -r 104e27133ebd -r 32e95d28efb2 NEWS --- a/NEWS Thu May 07 12:23:40 2020 +0200 +++ b/NEWS Thu May 07 12:37:36 2020 +0200 @@ -18,6 +18,7 @@ Maintenance ----------- +* Fix missing body in "OrthancPluginHttpPost()" and "OrthancPluginHttpPut()" * Upgraded dependencies for static builds (notably on Windows and LSB): - openssl 1.1.1g diff -r 104e27133ebd -r 32e95d28efb2 Plugins/Engine/OrthancPlugins.cpp --- a/Plugins/Engine/OrthancPlugins.cpp Thu May 07 12:23:40 2020 +0200 +++ b/Plugins/Engine/OrthancPlugins.cpp Thu May 07 12:37:36 2020 +0200 @@ -2732,10 +2732,12 @@ case OrthancPluginHttpMethod_Post: client.SetMethod(HttpMethod_Post); + client.GetBody().assign(reinterpret_cast(parameters.body), parameters.bodySize); break; case OrthancPluginHttpMethod_Put: client.SetMethod(HttpMethod_Put); + client.GetBody().assign(reinterpret_cast(parameters.body), parameters.bodySize); break; case OrthancPluginHttpMethod_Delete: