Mercurial > hg > orthanc
diff Plugins/Samples/Common/OrthancPluginCppWrapper.cpp @ 3399:4e8205871967
OrthancPluginRegisterMultipartRestCallback() is working
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 07 Jun 2019 14:14:31 +0200 |
parents | 9019279dbfd7 |
children | 0faae6f6e3c5 |
line wrap: on
line diff
--- a/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp Fri Jun 07 13:36:43 2019 +0200 +++ b/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp Fri Jun 07 14:14:31 2019 +0200 @@ -2613,6 +2613,7 @@ OrthancPluginHttpMethod method, const char* url, const char* contentType, + const char* subType, uint32_t groupsCount, const char* const* groups, uint32_t headersCount, @@ -2639,7 +2640,8 @@ } return reinterpret_cast<OrthancPluginMultipartRestHandler*>( - that.CreateHandler(method, url, contentType, g, headers)); + that.CreateHandler(method, url, contentType, + subType == NULL ? "" : subType, g, headers)); } catch (ORTHANC_PLUGINS_EXCEPTION_CLASS& e) { @@ -2676,12 +2678,12 @@ } catch (ORTHANC_PLUGINS_EXCEPTION_CLASS& e) { - LogError("Exception while add a part to a multipart handler"); + LogError("Exception while adding a part to a multipart handler"); return static_cast<OrthancPluginErrorCode>(e.GetErrorCode()); } catch (...) { - LogError("Native exception while add a part to a multipart handler"); + LogError("Native exception while adding a part to a multipart handler"); return OrthancPluginErrorCode_Plugin; } }