--------------------- PatchSet 1939 Date: 2005/10/06 05:25:21 Author: rousskov Branch: squid3-icap Tag: (none) Log: - Assume that ICAP server does not want Preview by default, that is until we have an OPTIONS response saying otherwise. This change effectively disables preview until Squid starts sending OPTIONS requests to active services. Members: src/ICAPServiceRep.cc:1.1.2.6->1.1.2.7 Index: squid3/src/ICAPServiceRep.cc =================================================================== RCS file: /cvsroot/squid-sf//squid3/src/Attic/ICAPServiceRep.cc,v retrieving revision 1.1.2.6 retrieving revision 1.1.2.7 diff -u -r1.1.2.6 -r1.1.2.7 --- squid3/src/ICAPServiceRep.cc 5 Oct 2005 22:24:28 -0000 1.1.2.6 +++ squid3/src/ICAPServiceRep.cc 6 Oct 2005 05:25:21 -0000 1.1.2.7 @@ -178,6 +178,9 @@ bool ICAPServiceRep::wantsPreview(size_t &wantedSize) const { + if (!opts || !opts->headers) + return false; + const int size = opts->headers->preview; if (size < 0)