Mercurial > hg > orthanc
changeset 3900:32e95d28efb2 transcoding
integration mainline->default
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 07 May 2020 12:37:36 +0200 |
parents | 104e27133ebd (current diff) fe0e4ef52a72 (diff) |
children | 603a7b86fa5f |
files | NEWS Plugins/Engine/OrthancPlugins.cpp |
diffstat | 2 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- 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<const char*>(parameters.body), parameters.bodySize); break; case OrthancPluginHttpMethod_Put: client.SetMethod(HttpMethod_Put); + client.GetBody().assign(reinterpret_cast<const char*>(parameters.body), parameters.bodySize); break; case OrthancPluginHttpMethod_Delete: