Mercurial > hg > orthanc
diff Plugins/Engine/OrthancPlugins.cpp @ 1329:272cb2019a4c
fix recovery tool
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 11 Mar 2015 16:51:31 +0100 |
parents | b7351ecb79b4 |
children | 7227b096a6dc |
line wrap: on
line diff
--- a/Plugins/Engine/OrthancPlugins.cpp Wed Feb 18 13:06:01 2015 +0100 +++ b/Plugins/Engine/OrthancPlugins.cpp Wed Mar 11 16:51:31 2015 +0100 @@ -304,11 +304,11 @@ bool OrthancPlugins::Handle(HttpOutput& output, - HttpMethod method, - const UriComponents& uri, - const Arguments& headers, - const Arguments& getArguments, - const std::string& postData) + HttpMethod method, + const UriComponents& uri, + const Arguments& headers, + const Arguments& getArguments, + const std::string& postData) { std::string flatUri = Toolbox::FlattenUri(uri); OrthancPluginRestCallback callback = NULL; @@ -321,11 +321,15 @@ for (PImpl::RestCallbacks::const_iterator it = pimpl_->restCallbacks_.begin(); it != pimpl_->restCallbacks_.end() && !found; ++it) { + printf(">> [%s]\n", flatUri.c_str()); + std::cout << " [" << *(it->first) << "]" << std::endl; + // Check whether the regular expression associated to this // callback matches the URI boost::cmatch what; if (boost::regex_match(flatUri.c_str(), what, *(it->first))) { + printf("ICI\n"); callback = it->second; // Extract the value of the free parameters of the regular expression