From 1094c5a2d00aa8f3882465e4705d474ecd2db2df Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Tue, 10 Sep 2013 19:03:45 -0600 Subject: [PATCH] Fix myportname ACL on ICAP/eCAP transactions The port name from http_port/https_port was not being propigated to adapted reqeusts after ICAP/eCAP. Which makes the myportname ACL and logging of portname not work on adapted requests. This is an iCelero Project --- src/HttpRequest.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/HttpRequest.cc b/src/HttpRequest.cc index 841dde68ce..5e817ed14c 100644 --- a/src/HttpRequest.cc +++ b/src/HttpRequest.cc @@ -223,7 +223,6 @@ HttpRequest::clone() const copy->vary_headers = vary_headers ? xstrdup(vary_headers) : NULL; // XXX: what to do with copy->peer_domain? - copy->myportname = myportname; copy->tag = tag; copy->extacl_log = extacl_log; copy->extacl_message = extacl_message; @@ -268,6 +267,8 @@ HttpRequest::inheritProperties(const HttpMsg *aMsg) extacl_passwd = aReq->extacl_passwd; #endif + myportname = aReq->myportname; + // main property is which connection the request was received on (if any) clientConnectionManager = aReq->clientConnectionManager; -- 2.47.2