From: Amos Jeffries Date: Mon, 9 Dec 2013 01:04:23 +0000 (-0700) Subject: Bug 3589: intercepted and ICAP modified request using a cache_peer X-Git-Tag: SQUID_3_4_1~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2b88e6d2699d258d11c345132004d8e4f102625;p=thirdparty%2Fsquid.git Bug 3589: intercepted and ICAP modified request using a cache_peer --- diff --git a/src/client_side_request.cc b/src/client_side_request.cc index 0f6a39b5b1..45e26ff7a6 100644 --- a/src/client_side_request.cc +++ b/src/client_side_request.cc @@ -1896,6 +1896,11 @@ ClientHttpRequest::handleAdaptedHeader(HttpMsg *msg) HTTPMSGUNLOCK(request); request = new_req; HTTPMSGLOCK(request); + + // update the new message to flag whether URL re-writing was done on it + if (strcmp(urlCanonical(request),uri) != 0) + request->flags.redirected = 1; + /* * Store the new URI for logging */