Mercurial > hg > orthanc
diff Plugins/Engine/OrthancPlugins.cpp @ 3409:877363a40647
merge
author | s.jodogne@gmail.com |
---|---|
date | Sat, 08 Jun 2019 16:49:35 +0200 |
parents | b7728227a852 |
children | f09bfdea3fc3 |
line wrap: on
line diff
--- a/Plugins/Engine/OrthancPlugins.cpp Sat Jun 08 16:49:10 2019 +0200 +++ b/Plugins/Engine/OrthancPlugins.cpp Sat Jun 08 16:49:35 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; }