--------------------- PatchSet 1513 Date: 2005/08/16 17:19:12 Author: dwsquid Branch: squid3-icap Tag: (none) Log: Adding ICAP hooks to reply processing Members: src/client_side_reply.cc:1.61->1.61.2.1 Index: squid3/src/client_side_reply.cc =================================================================== RCS file: /cvsroot/squid-sf//squid3/src/client_side_reply.cc,v retrieving revision 1.61 retrieving revision 1.61.2.1 diff -u -r1.61 -r1.61.2.1 --- squid3/src/client_side_reply.cc 10 Jun 2005 02:13:46 -0000 1.61 +++ squid3/src/client_side_reply.cc 16 Aug 2005 17:19:12 -0000 1.61.2.1 @@ -1,6 +1,6 @@ /* - * $Id: client_side_reply.cc,v 1.61 2005/06/10 02:13:46 squidadm Exp $ + * $Id: client_side_reply.cc,v 1.61.2.1 2005/08/16 17:19:12 dwsquid Exp $ * * DEBUG: section 88 Client-side Reply Routines * AUTHOR: Robert Collins (Originally Duane Wessels in client_side.c) @@ -45,6 +45,9 @@ #if ESI #include "ESI.h" #endif +#if ICAP_CLIENT +#include "ICAPClient.h" +#endif #include "MemObject.h" #include "ACLChecklist.h" #include "ACL.h" @@ -1937,6 +1940,16 @@ clientStreamInsertHead(&http->client_stream, esiStreamRead, esiProcessStream, esiStreamDetach, esiStreamStatus, NULL); } +#endif + +#if ICAP_CLIENT + + debug(88, 0) ("Enabling ICAP processing for %s\n", http->uri); + clientStreamInsertHead(&http->client_stream, icapclientStreamRead, + icapclientProcessStream, + icapclientStreamDetach, + icapclientStreamStatus, + NULL); #endif if (http->request->method == METHOD_HEAD) {