]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 3589: intercepted and ICAP modified request using a cache_peer
authorAmos Jeffries <squid3@treenet.co.nz>
Wed, 4 Dec 2013 00:57:34 +0000 (13:57 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 4 Dec 2013 00:57:34 +0000 (13:57 +1300)
src/client_side_request.cc

index ee815d0c4c89706529b46557056fb49c62e45768..f14c38510074ec035ca922ea261232f3b04ce5a7 100644 (file)
@@ -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
          */