/*
- * $Id: client_side_request.cc,v 1.52 2005/11/21 23:53:37 wessels Exp $
+ * $Id: client_side_request.cc,v 1.53 2005/12/03 18:00:28 wessels Exp $
*
* DEBUG: section 85 Client-side Request Routines
* AUTHOR: Robert Collins (Originally Duane Wessels in client_side.c)
#include "ICAP/ICAPElements.h"
#include "ICAP/ICAPConfig.h"
static void icapAclCheckDoneWrapper(ICAPServiceRep::Pointer service, void *data);
+extern ICAPConfig TheICAPConfig;
#endif
#if LINGERING_CLOSE
}
#if ICAP_CLIENT
- if (!calloutContext->icap_acl_check_done) {
+ if (TheICAPConfig.onoff && !calloutContext->icap_acl_check_done) {
calloutContext->icap_acl_check_done = 1;
calloutContext->icapAccessCheck();
return;
/*
- * $Id: http.cc,v 1.468 2005/11/24 00:54:15 wessels Exp $
+ * $Id: http.cc,v 1.469 2005/12/03 18:00:28 wessels Exp $
*
* DEBUG: section 11 Hypertext Transfer Protocol (HTTP)
* AUTHOR: Harvest Derived
#if ICAP_CLIENT
#include "ICAP/ICAPClientRespmodPrecache.h"
#include "ICAP/ICAPConfig.h"
+extern ICAPConfig TheICAPConfig;
#endif
CBDATA_CLASS_INIT(HttpStateData);
#if ICAP_CLIENT
- {
+ if (TheICAPConfig.onoff) {
ICAPAccessCheck *icap_access_check =
new ICAPAccessCheck(ICAP::methodRespmod, ICAP::pointPreCache, request, reply, icapAclCheckDoneWrapper, this);
ctx_exit(ctx);
return;
}
+
#endif
storeEntryReplaceObject(entry, reply);