]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Supply ALE for force_request_body_continuation ACL (#226)
authorEduard Bagdasaryan <eduard.bagdasaryan@measurement-factory.com>
Thu, 28 Jun 2018 11:20:04 +0000 (11:20 +0000)
committerAmos Jeffries <yadij@users.noreply.github.com>
Sun, 1 Jul 2018 08:37:26 +0000 (20:37 +1200)
cb36505 already covered many (but not all) similar cases.

src/servers/FtpServer.cc
src/servers/Http1Server.cc

index c6ffa94fb6c5cdab2989e4b142e372104c81a60b..37acca4ba0c10793559068776dcf5ea14716f242 100644 (file)
@@ -1545,6 +1545,8 @@ Ftp::Server::handleUploadRequest(String &, String &)
         ClientHttpRequest *http = pipeline.front()->http;
         HttpRequest *request = http->request;
         ACLFilledChecklist bodyContinuationCheck(Config.accessList.forceRequestBodyContinuation, request, NULL);
+        bodyContinuationCheck.al = http->al;
+        bodyContinuationCheck.syncAle(request, http->log_uri);
         if (bodyContinuationCheck.fastCheck().allowed()) {
             request->forcedBodyContinuation = true;
             if (checkDataConnPost()) {
index 58a15d72f427306c4108db1d216ce5f927ba41a9..c23a934f9f91dcc729d5b3e655a5511ca5ca49b1 100644 (file)
@@ -249,6 +249,8 @@ Http::One::Server::processParsedRequest(Http::StreamPointer &context)
 
         if (Config.accessList.forceRequestBodyContinuation) {
             ACLFilledChecklist bodyContinuationCheck(Config.accessList.forceRequestBodyContinuation, request.getRaw(), NULL);
+            bodyContinuationCheck.al = http->al;
+            bodyContinuationCheck.syncAle(request.getRaw(), http->log_uri);
             if (bodyContinuationCheck.fastCheck().allowed()) {
                 debugs(33, 5, "Body Continuation forced");
                 request->forcedBodyContinuation = true;