comparison OrthancServer/main.cpp @ 2268:ce5c13b95dac

New function: OrthancPluginRegisterIncomingHttpRequestFilter2()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 22 Feb 2017 21:49:16 +0100
parents 596528620416
children 5465cab476cf
comparison
equal deleted inserted replaced
2267:f915aff7a866 2268:ce5c13b95dac
289 289
290 virtual bool IsAllowed(HttpMethod method, 290 virtual bool IsAllowed(HttpMethod method,
291 const char* uri, 291 const char* uri,
292 const char* ip, 292 const char* ip,
293 const char* username, 293 const char* username,
294 const IHttpHandler::Arguments& httpHeaders) const 294 const IHttpHandler::Arguments& httpHeaders,
295 const IHttpHandler::GetArguments& getArguments) const
295 { 296 {
296 if (plugins_ != NULL && 297 if (plugins_ != NULL &&
297 !plugins_->IsAllowed(method, uri, ip, username, httpHeaders)) 298 !plugins_->IsAllowed(method, uri, ip, username, httpHeaders, getArguments))
298 { 299 {
299 return false; 300 return false;
300 } 301 }
301 302
302 static const char* HTTP_FILTER = "IncomingHttpRequestFilter"; 303 static const char* HTTP_FILTER = "IncomingHttpRequestFilter";