]> 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>
Mon, 9 Dec 2013 01:04:23 +0000 (18:04 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 9 Dec 2013 01:04:23 +0000 (18:04 -0700)
src/client_side_request.cc

index 0f6a39b5b125d77bf1ab9abb6d60ec475df36a5e..45e26ff7a6fc96fd5f36960cba58b40e38302f5c 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
          */