]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Don't print a Warning about OPTIONS reply method mismatch if the
authorwessels <>
Wed, 14 Dec 2005 05:11:07 +0000 (05:11 +0000)
committerwessels <>
Wed, 14 Dec 2005 05:11:07 +0000 (05:11 +0000)
OPTIONS reply doesn't have a Methods header.

src/ICAP/ICAPServiceRep.cc

index c2d38dc7bb9b64afa6eb406ebf1d944301ac3359..72a1ed514bb63a78bec57e351e3fcf3bcc37964c 100644 (file)
@@ -287,7 +287,7 @@ void ICAPServiceRep::changeOptions(ICAPOptions *newOptions)
      * then discovered the method via OPTIONS
      */
 
-    if (theOptions->method != method)
+    if (theOptions->method != method && theOptions->method != ICAP::methodNone)
         debugs(93,1, "WARNING: Squid is configured to use ICAP method " << ICAP::methodStr(method) <<
                " for service " << uri.buf() <<
                " but OPTIONS response declares the method is " << ICAP::methodStr(theOptions->method));