From 20fb35716bddaf1cb13aefbd3647a37b8cffbd42 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Sat, 7 Sep 2013 22:27:31 -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 9c1315d6ba..dc18b33515 100644 --- a/src/HttpRequest.cc +++ b/src/HttpRequest.cc @@ -228,7 +228,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; @@ -273,6 +272,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.3