Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
3408:1787ad594063 | 3409:877363a40647 |
---|---|
4229 | 4229 |
4230 default: | 4230 default: |
4231 throw OrthancException(ErrorCode_ParameterOutOfRange); | 4231 throw OrthancException(ErrorCode_ParameterOutOfRange); |
4232 } | 4232 } |
4233 | 4233 |
4234 std::string multipartContentType; | 4234 std::string mainContentType; |
4235 if (!MultipartStreamReader::GetMainContentType(multipartContentType, headers)) | 4235 if (!MultipartStreamReader::GetMainContentType(mainContentType, headers)) |
4236 { | 4236 { |
4237 LOG(INFO) << "Missing Content-Type HTTP header, prevents streaming the body"; | 4237 LOG(INFO) << "Missing Content-Type HTTP header, prevents streaming the body"; |
4238 continue; | 4238 continue; |
4239 } | 4239 } |
4240 | 4240 |
4241 std::string contentType, subType, boundary; | 4241 std::string contentType, subType, boundary; |
4242 if (!MultipartStreamReader::ParseMultipartContentType | 4242 if (!MultipartStreamReader::ParseMultipartContentType |
4243 (contentType, subType, boundary, multipartContentType)) | 4243 (contentType, subType, boundary, mainContentType)) |
4244 { | 4244 { |
4245 LOG(INFO) << "Invalid Content-Type HTTP header, " | 4245 LOG(INFO) << "Invalid Content-Type HTTP header, " |
4246 << "prevents streaming the body: \"" << multipartContentType << "\""; | 4246 << "prevents streaming the body: \"" << mainContentType << "\""; |
4247 continue; | 4247 continue; |
4248 } | 4248 } |
4249 | 4249 |
4250 OrthancPluginErrorCode errorCode = OrthancPluginErrorCode_Plugin; | 4250 OrthancPluginErrorCode errorCode = OrthancPluginErrorCode_Plugin; |
4251 | 4251 |