diff Core/HttpServer/MongooseServer.cpp @ 2268:ce5c13b95dac

New function: OrthancPluginRegisterIncomingHttpRequestFilter2()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 22 Feb 2017 21:49:16 +0100
parents a3a65de1840f
children 32bea64e070b
line wrap: on
line diff
--- a/Core/HttpServer/MongooseServer.cpp	Wed Feb 22 13:32:05 2017 +0100
+++ b/Core/HttpServer/MongooseServer.cpp	Wed Feb 22 21:49:16 2017 +0100
@@ -652,7 +652,8 @@
     const IIncomingHttpRequestFilter *filter = server.GetIncomingHttpRequestFilter();
     if (filter != NULL)
     {
-      if (!filter->IsAllowed(method, request->uri, remoteIp, username.c_str(), headers))
+      if (!filter->IsAllowed(method, request->uri, remoteIp,
+                             username.c_str(), headers, argumentsGET))
       {
         //output.SendUnauthorized(ORTHANC_REALM);
         output.SendStatus(HttpStatus_403_Forbidden);