Mercurial > hg > orthanc
comparison OrthancServer/Plugins/Engine/OrthancPlugins.cpp @ 4087:dcf4d83374a6 framework
integration mainline->framework
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 26 Jun 2020 09:47:51 +0200 |
parents | Plugins/Engine/OrthancPlugins.cpp@4cd94ed75a5b Plugins/Engine/OrthancPlugins.cpp@55727d85f419 |
children | c02a2d9efbc2 |
comparison
equal
deleted
inserted
replaced
4083:26efd0404d97 | 4087:dcf4d83374a6 |
---|---|
5129 OrthancPluginServerChunkedRequestReader* reader = NULL; | 5129 OrthancPluginServerChunkedRequestReader* reader = NULL; |
5130 | 5130 |
5131 OrthancPluginErrorCode errorCode = handler( | 5131 OrthancPluginErrorCode errorCode = handler( |
5132 &reader, matcher.GetFlatUri().c_str(), &converter.GetRequest()); | 5132 &reader, matcher.GetFlatUri().c_str(), &converter.GetRequest()); |
5133 | 5133 |
5134 if (reader == NULL) | 5134 if (errorCode != OrthancPluginErrorCode_Success) |
5135 { | |
5136 throw OrthancException(static_cast<ErrorCode>(errorCode)); | |
5137 } | |
5138 else if (reader == NULL) | |
5135 { | 5139 { |
5136 // The plugin has not created a reader for chunked body | 5140 // The plugin has not created a reader for chunked body |
5137 return false; | 5141 return false; |
5138 } | |
5139 else if (errorCode != OrthancPluginErrorCode_Success) | |
5140 { | |
5141 throw OrthancException(static_cast<ErrorCode>(errorCode)); | |
5142 } | 5142 } |
5143 else | 5143 else |
5144 { | 5144 { |
5145 target.reset(new HttpServerChunkedReader(reader, callback->GetParameters(), GetErrorDictionary())); | 5145 target.reset(new HttpServerChunkedReader(reader, callback->GetParameters(), GetErrorDictionary())); |
5146 return true; | 5146 return true; |