From: Amos Jeffries Date: Wed, 4 Dec 2013 00:57:34 +0000 (+1300) Subject: Bug 3589: intercepted and ICAP modified request using a cache_peer X-Git-Tag: SQUID_3_5_0_1~476 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11f62bfbf07caef0dd8ec0958b45c2734c08dd74;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 ee815d0c4c..f14c385100 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 */