--------------------- PatchSet 6253 Date: 2004/08/04 16:55:42 Author: dwsquid Branch: icap-2_5 Tag: (none) Log: Patch from olivier - Encapsulated header had wrong values for REQMOD. Need to add two bytes for terminating CRLF. Members: src/icap_reqmod.c:1.1.2.29->1.1.2.30 Index: squid/src/icap_reqmod.c =================================================================== RCS file: /cvsroot/squid-sf//squid/src/Attic/icap_reqmod.c,v retrieving revision 1.1.2.29 retrieving revision 1.1.2.30 diff -u -r1.1.2.29 -r1.1.2.30 --- squid/src/icap_reqmod.c 2 Jul 2004 10:38:14 -0000 1.1.2.29 +++ squid/src/icap_reqmod.c 4 Aug 2004 16:55:42 -0000 1.1.2.30 @@ -1,6 +1,6 @@ /* - * $Id: icap_reqmod.c,v 1.1.2.29 2004/07/02 10:38:14 rhorstmann Exp $ + * $Id: icap_reqmod.c,v 1.1.2.30 2004/08/04 16:55:42 dwsquid Exp $ * * DEBUG: section 81 Internet Content Adaptation Protocol (ICAP) Client * AUTHOR: Geetha Manjunath, Hewlett Packard Company @@ -619,9 +619,9 @@ memBufPrintf(&mb, "Encapsulated: req-hdr=0"); /* TODO: Change the offset using 'request' if needed */ if (icap->request->content_length > 0) - memBufPrintf(&mb, ", req-body=%d", mb_hdr.size); + memBufPrintf(&mb, ", req-body=%d", mb_hdr.size+2); else - memBufPrintf(&mb, ", null-body=%d", mb_hdr.size); + memBufPrintf(&mb, ", null-body=%d", mb_hdr.size+2); memBufAppend(&mb, crlf, 2); if (Config.icapcfg.send_client_ip) memBufPrintf(&mb, "X-Client-IP: %s\r\n", client_addr);