--------------------- PatchSet 7021 Date: 2005/09/12 17:15:35 Author: chtsanti Branch: icap-2_5 Tag: (none) Log: 201 responces is not bad idea and exists at least one antivirus icap server server which use 201 responces..... Members: src/icap_reqmod.c:1.1.2.44->1.1.2.45 src/icap_respmod.c:1.1.2.56->1.1.2.57 Index: squid/src/icap_reqmod.c =================================================================== RCS file: /cvsroot/squid-sf//squid/src/Attic/icap_reqmod.c,v retrieving revision 1.1.2.44 retrieving revision 1.1.2.45 diff -u -r1.1.2.44 -r1.1.2.45 --- squid/src/icap_reqmod.c 26 Apr 2005 16:10:16 -0000 1.1.2.44 +++ squid/src/icap_reqmod.c 12 Sep 2005 17:15:35 -0000 1.1.2.45 @@ -1,6 +1,6 @@ /* - * $Id: icap_reqmod.c,v 1.1.2.44 2005/04/26 16:10:16 chtsanti Exp $ + * $Id: icap_reqmod.c,v 1.1.2.45 2005/09/12 17:15:35 chtsanti Exp $ * * DEBUG: section 81 Internet Content Adaptation Protocol (ICAP) Client * AUTHOR: Geetha Manjunath, Hewlett Packard Company @@ -508,7 +508,7 @@ comm_close(fd); return; }; - if (200 != status) { + if (200 != status && 201 != status) { debug(81, 1) ("Unsupported status '%d' from ICAP server\n", status); icapEntryError(icap, ERR_ICAP_FAILURE, HTTP_INTERNAL_SERVER_ERROR, errno); Index: squid/src/icap_respmod.c =================================================================== RCS file: /cvsroot/squid-sf//squid/src/Attic/icap_respmod.c,v retrieving revision 1.1.2.56 retrieving revision 1.1.2.57 diff -u -r1.1.2.56 -r1.1.2.57 --- squid/src/icap_respmod.c 16 May 2005 20:52:41 -0000 1.1.2.56 +++ squid/src/icap_respmod.c 12 Sep 2005 17:15:35 -0000 1.1.2.57 @@ -1,6 +1,6 @@ /* - * $Id: icap_respmod.c,v 1.1.2.56 2005/05/16 20:52:41 hno Exp $ + * $Id: icap_respmod.c,v 1.1.2.57 2005/09/12 17:15:35 chtsanti Exp $ * * DEBUG: section 81 Internet Content Adaptation Protocol (ICAP) Client * AUTHOR: Geetha Manjunath, Hewlett Packard Company @@ -510,7 +510,7 @@ return; } #endif - if (200 != status) { + if (200 != status && 201 != status) { debug(81, 1) ("Unsupported status '%d' from ICAP server\n", status); /* Did not find a proper ICAP response */ err = errorCon(ERR_ICAP_FAILURE, HTTP_INTERNAL_SERVER_ERROR);