From: wessels <> Date: Tue, 22 Nov 2005 06:21:21 +0000 (+0000) Subject: Added #ifdef-ef out code for future work on ICAP RESPMOD POSTCACHE X-Git-Tag: SQUID_3_0_PRE4~506 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5ef38a13f6dfd2730a5a034988072036b3494505;p=thirdparty%2Fsquid.git Added #ifdef-ef out code for future work on ICAP RESPMOD POSTCACHE --- diff --git a/src/client_side_reply.cc b/src/client_side_reply.cc index 70e05196b5..a484b0a830 100644 --- a/src/client_side_reply.cc +++ b/src/client_side_reply.cc @@ -1,6 +1,6 @@ /* - * $Id: client_side_reply.cc,v 1.90 2005/11/07 22:00:38 wessels Exp $ + * $Id: client_side_reply.cc,v 1.91 2005/11/21 23:21:21 wessels 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_RESPMOD_POSTCACHE +#include "ICAPClient.h" +#endif #include "MemObject.h" #include "ACLChecklist.h" #include "ACL.h" @@ -1942,6 +1945,19 @@ clientReplyContext::processReplyAccessResult(bool accessAllowed) } #endif + +#if ICAP_CLIENT_RESPMOD_POSTCACHE + + 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) { /* do not forward body for HEAD replies */ body_size = 0;