--------------------- PatchSet 6277 Date: 2004/08/20 21:55:48 Author: dwsquid Branch: icap-2_5 Tag: (none) Log: Undo one of Olivier's recent changes with req-body and null-body values relating to CRLF bytes. Members: src/icap_reqmod.c:1.1.2.30->1.1.2.31 Index: squid/src/icap_reqmod.c =================================================================== RCS file: /cvsroot/squid-sf//squid/src/Attic/icap_reqmod.c,v retrieving revision 1.1.2.30 retrieving revision 1.1.2.31 diff -u -r1.1.2.30 -r1.1.2.31 --- squid/src/icap_reqmod.c 4 Aug 2004 16:55:42 -0000 1.1.2.30 +++ squid/src/icap_reqmod.c 20 Aug 2004 21:55:48 -0000 1.1.2.31 @@ -1,6 +1,6 @@ /* - * $Id: icap_reqmod.c,v 1.1.2.30 2004/08/04 16:55:42 dwsquid Exp $ + * $Id: icap_reqmod.c,v 1.1.2.31 2004/08/20 21:55:48 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+2); + memBufPrintf(&mb, ", req-body=%d", mb_hdr.size); else - memBufPrintf(&mb, ", null-body=%d", mb_hdr.size+2); + memBufPrintf(&mb, ", null-body=%d", mb_hdr.size); memBufAppend(&mb, crlf, 2); if (Config.icapcfg.send_client_ip) memBufPrintf(&mb, "X-Client-IP: %s\r\n", client_addr);