Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
2267:f915aff7a866 | 2268:ce5c13b95dac |
---|---|
650 std::string username = GetAuthenticatedUsername(headers); | 650 std::string username = GetAuthenticatedUsername(headers); |
651 | 651 |
652 const IIncomingHttpRequestFilter *filter = server.GetIncomingHttpRequestFilter(); | 652 const IIncomingHttpRequestFilter *filter = server.GetIncomingHttpRequestFilter(); |
653 if (filter != NULL) | 653 if (filter != NULL) |
654 { | 654 { |
655 if (!filter->IsAllowed(method, request->uri, remoteIp, username.c_str(), headers)) | 655 if (!filter->IsAllowed(method, request->uri, remoteIp, |
656 username.c_str(), headers, argumentsGET)) | |
656 { | 657 { |
657 //output.SendUnauthorized(ORTHANC_REALM); | 658 //output.SendUnauthorized(ORTHANC_REALM); |
658 output.SendStatus(HttpStatus_403_Forbidden); | 659 output.SendStatus(HttpStatus_403_Forbidden); |
659 return; | 660 return; |
660 } | 661 } |