Mercurial > hg > orthanc
comparison Core/RestApi/RestApi.cpp @ 1363:feaf2840917c
Plugins now receive duplicated GET arguments in their REST callbacks
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 20 May 2015 15:21:26 +0200 |
parents | 6e7e5ed91c2d |
children | b22ba8c5edbe |
comparison
equal
deleted
inserted
replaced
1362:bf6db7d2f8b1 | 1363:feaf2840917c |
---|---|
158 | 158 |
159 bool RestApi::Handle(HttpOutput& output, | 159 bool RestApi::Handle(HttpOutput& output, |
160 HttpMethod method, | 160 HttpMethod method, |
161 const UriComponents& uri, | 161 const UriComponents& uri, |
162 const Arguments& headers, | 162 const Arguments& headers, |
163 const Arguments& getArguments, | 163 const GetArguments& getArguments, |
164 const std::string& postData) | 164 const std::string& postData) |
165 { | 165 { |
166 RestApiOutput wrappedOutput(output); | 166 RestApiOutput wrappedOutput(output); |
167 | 167 |
168 #if ORTHANC_PUGIXML_ENABLED == 1 | 168 #if ORTHANC_PUGIXML_ENABLED == 1 |
186 } | 186 } |
187 } | 187 } |
188 } | 188 } |
189 #endif | 189 #endif |
190 | 190 |
191 HttpHandlerVisitor visitor(*this, wrappedOutput, method, headers, getArguments, postData); | 191 Arguments compiled; |
192 HttpHandler::CompileGetArguments(compiled, getArguments); | |
193 | |
194 HttpHandlerVisitor visitor(*this, wrappedOutput, method, headers, compiled, postData); | |
192 | 195 |
193 if (root_.LookupResource(uri, visitor)) | 196 if (root_.LookupResource(uri, visitor)) |
194 { | 197 { |
195 wrappedOutput.Finalize(); | 198 wrappedOutput.Finalize(); |
196 return true; | 199 return true; |