Mercurial > hg > orthanc
diff Plugins/Engine/OrthancPlugins.cpp @ 3407:b7728227a852
C++ wrappers: compatibility mode if missing OrthancPluginRegisterMultipartRestCallback()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 08 Jun 2019 11:57:46 +0200 |
parents | e280ced38a4c |
children | f09bfdea3fc3 |
line wrap: on
line diff
--- a/Plugins/Engine/OrthancPlugins.cpp Sat Jun 08 10:30:00 2019 +0200 +++ b/Plugins/Engine/OrthancPlugins.cpp Sat Jun 08 11:57:46 2019 +0200 @@ -4231,8 +4231,8 @@ throw OrthancException(ErrorCode_ParameterOutOfRange); } - std::string multipartContentType; - if (!MultipartStreamReader::GetMainContentType(multipartContentType, headers)) + std::string mainContentType; + if (!MultipartStreamReader::GetMainContentType(mainContentType, headers)) { LOG(INFO) << "Missing Content-Type HTTP header, prevents streaming the body"; continue; @@ -4240,10 +4240,10 @@ std::string contentType, subType, boundary; if (!MultipartStreamReader::ParseMultipartContentType - (contentType, subType, boundary, multipartContentType)) + (contentType, subType, boundary, mainContentType)) { LOG(INFO) << "Invalid Content-Type HTTP header, " - << "prevents streaming the body: \"" << multipartContentType << "\""; + << "prevents streaming the body: \"" << mainContentType << "\""; continue; }