Currently the 'icap_service' directive in squid.conf specifies both the
URI and method. The ICAP server also returns the method in the OPTIONS
response. This could create a conflict if the user specifies the wrong
method for a service.
For now we trust the squid.conf value and issue a warning if the OPTIONS
response reports a different method.
newOptions);
delete theOptions;
theOptions = newOptions;
+
+ /*
+ * Maybe it would be better if squid.conf just listed the URI and
+ * then discovered the method via OPTIONS
+ */
+
+ if (theOptions->method != method)
+ 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));
}
static