]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Use request URI instead of StoreID when forwarding requests to peers
authorNikolai Gorchilov <niki@x3me.net>
Fri, 21 Mar 2014 08:45:23 +0000 (02:45 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 21 Mar 2014 08:45:23 +0000 (02:45 -0600)
TODO: There are more bugs like that, including using Store IDs in ICP
requests.

src/http.cc

index e3ae204c1d1b231ef2dd6c470a02b508d0780ade..1d071f57f3b905ea4ed3c99ee2cacf801e2b3a84 100644 (file)
@@ -2105,7 +2105,7 @@ HttpStateData::buildRequestPrefix(MemBuf * mb)
     Http::ProtocolVersion httpver(1,1);
     const char * url;
     if (_peer && !_peer->options.originserver)
-        url = entry->url();
+        url = urlCanonical(request);
     else
         url = request->urlpath.termedBuf();
     mb->Printf("%s %s %s/%d.%d\r\n",