]> 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)
committerSquid Anubis <squid-anubis@squid-cache.org>
Thu, 28 Jun 2018 15:46:38 +0000 (15:46 +0000)
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 f12a34c43b04821f255b7ecee53f82c84fccaddd..b0ae347682e23ff157b7a9b53cbd3538b95701ed 100644 (file)
@@ -256,6 +256,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;