# HG changeset patch # User Sebastien Jodogne # Date 1460044127 -7200 # Node ID af0c90ae091507a28a80a4dbbc46cee6d9202d93 # Parent 22ddb22fce83329cbee3f25728b7bc5d30e68b0e Use 403 Forbidden status if the incoming HTTP request is disallowed diff -r 22ddb22fce83 -r af0c90ae0915 Core/HttpServer/MongooseServer.cpp --- a/Core/HttpServer/MongooseServer.cpp Thu Apr 07 17:42:20 2016 +0200 +++ b/Core/HttpServer/MongooseServer.cpp Thu Apr 07 17:48:47 2016 +0200 @@ -647,7 +647,8 @@ { if (!filter->IsAllowed(method, request->uri, remoteIp, username.c_str(), headers)) { - output.SendUnauthorized(ORTHANC_REALM); + //output.SendUnauthorized(ORTHANC_REALM); + output.SendStatus(HttpStatus_403_Forbidden); return; } }