Mercurial > hg > orthanc
diff 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 |
line wrap: on
line diff
--- a/Core/RestApi/RestApi.cpp Fri May 15 17:33:43 2015 +0200 +++ b/Core/RestApi/RestApi.cpp Wed May 20 15:21:26 2015 +0200 @@ -160,7 +160,7 @@ HttpMethod method, const UriComponents& uri, const Arguments& headers, - const Arguments& getArguments, + const GetArguments& getArguments, const std::string& postData) { RestApiOutput wrappedOutput(output); @@ -188,7 +188,10 @@ } #endif - HttpHandlerVisitor visitor(*this, wrappedOutput, method, headers, getArguments, postData); + Arguments compiled; + HttpHandler::CompileGetArguments(compiled, getArguments); + + HttpHandlerVisitor visitor(*this, wrappedOutput, method, headers, compiled, postData); if (root_.LookupResource(uri, visitor)) {