]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Look for "Connection: close" in OPTIONS response too.
authorwessels <>
Tue, 20 Dec 2005 04:44:26 +0000 (04:44 +0000)
committerwessels <>
Tue, 20 Dec 2005 04:44:26 +0000 (04:44 +0000)
src/ICAP/ICAPOptXact.cc

index 77266ac7df85297573282b45cfd8a00d3a10d91a..a426c77bc9f02625d696d5c29d19dddc332562f5 100644 (file)
@@ -106,6 +106,10 @@ bool ICAPOptXact::parseResponse()
 
     options->configure(r);
 
+    if (httpHeaderHasConnDir(&r->header, "close"))
+        reuseConnection = false;
+
     delete r;
+
     return true;
 }