]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Added #ifdef-ef out code for future work on ICAP RESPMOD POSTCACHE
authorwessels <>
Tue, 22 Nov 2005 06:21:21 +0000 (06:21 +0000)
committerwessels <>
Tue, 22 Nov 2005 06:21:21 +0000 (06:21 +0000)
src/client_side_reply.cc

index 70e05196b54049406693ec723a71519c62bf02ce..a484b0a830b3995d759a2cd02b0b2b44b69c92da 100644 (file)
@@ -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;