From 5810a9946568f69319ee79dc93c4795e47a07cd7 Mon Sep 17 00:00:00 2001 From: Eduard Bagdasaryan Date: Thu, 28 Jun 2018 11:20:04 +0000 Subject: [PATCH] Supply ALE for force_request_body_continuation ACL (#226) cb36505 already covered many (but not all) similar cases. --- src/servers/FtpServer.cc | 2 ++ src/servers/Http1Server.cc | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/servers/FtpServer.cc b/src/servers/FtpServer.cc index c6ffa94fb6..37acca4ba0 100644 --- a/src/servers/FtpServer.cc +++ b/src/servers/FtpServer.cc @@ -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()) { diff --git a/src/servers/Http1Server.cc b/src/servers/Http1Server.cc index f12a34c43b..b0ae347682 100644 --- a/src/servers/Http1Server.cc +++ b/src/servers/Http1Server.cc @@ -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; -- 2.47.2