Mercurial > hg > orthanc
comparison Plugins/Engine/OrthancPlugins.cpp @ 3892:fe0e4ef52a72
Fix missing body in "OrthancPluginHttpPost()" and "OrthancPluginHttpPut()"
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 06 May 2020 08:40:48 +0200 |
parents | 1491d501836a |
children | 32e95d28efb2 |
comparison
equal
deleted
inserted
replaced
3890:35065dd39cc8 | 3892:fe0e4ef52a72 |
---|---|
2730 client.SetMethod(HttpMethod_Get); | 2730 client.SetMethod(HttpMethod_Get); |
2731 break; | 2731 break; |
2732 | 2732 |
2733 case OrthancPluginHttpMethod_Post: | 2733 case OrthancPluginHttpMethod_Post: |
2734 client.SetMethod(HttpMethod_Post); | 2734 client.SetMethod(HttpMethod_Post); |
2735 client.GetBody().assign(reinterpret_cast<const char*>(parameters.body), parameters.bodySize); | |
2735 break; | 2736 break; |
2736 | 2737 |
2737 case OrthancPluginHttpMethod_Put: | 2738 case OrthancPluginHttpMethod_Put: |
2738 client.SetMethod(HttpMethod_Put); | 2739 client.SetMethod(HttpMethod_Put); |
2740 client.GetBody().assign(reinterpret_cast<const char*>(parameters.body), parameters.bodySize); | |
2739 break; | 2741 break; |
2740 | 2742 |
2741 case OrthancPluginHttpMethod_Delete: | 2743 case OrthancPluginHttpMethod_Delete: |
2742 client.SetMethod(HttpMethod_Delete); | 2744 client.SetMethod(HttpMethod_Delete); |
2743 break; | 2745 break; |