--------------------- PatchSet 6236 Date: 2004/07/02 10:38:14 Author: rhorstmann Branch: icap-2_5 Tag: (none) Log: fixed calculation of the encapsulated header as proposed by Christos Tsantilas on squid-devel. Members: src/icap_reqmod.c:1.1.2.28->1.1.2.29 Index: squid/src/icap_reqmod.c =================================================================== RCS file: /cvsroot/squid-sf//squid/src/Attic/icap_reqmod.c,v retrieving revision 1.1.2.28 retrieving revision 1.1.2.29 diff -u -r1.1.2.28 -r1.1.2.29 --- squid/src/icap_reqmod.c 13 May 2004 16:26:19 -0000 1.1.2.28 +++ squid/src/icap_reqmod.c 2 Jul 2004 10:38:14 -0000 1.1.2.29 @@ -1,6 +1,6 @@ /* - * $Id: icap_reqmod.c,v 1.1.2.28 2004/05/13 16:26:19 dwsquid Exp $ + * $Id: icap_reqmod.c,v 1.1.2.29 2004/07/02 10:38:14 rhorstmann Exp $ * * DEBUG: section 81 Internet Content Adaptation Protocol (ICAP) Client * AUTHOR: Geetha Manjunath, Hewlett Packard Company @@ -610,7 +610,7 @@ packerToMemInit(&p, &mb_hdr); httpHeaderPackInto(&icap->request->header, &p); packerClean(&p); - + memBufAppend(&mb_hdr, crlf, 2); service = icap->current_service; assert(service); client_addr = inet_ntoa(icap->request->client_addr); @@ -634,7 +634,6 @@ memBufAppend(&mb, mb_hdr.buf, mb_hdr.size); memBufClean(&mb_hdr); - memBufAppend(&mb, crlf, 2); debug(81, 5) ("icapSendReqMod: FD %d writing {%s}\n", icap->icap_fd, mb.buf); comm_write_mbuf(icap_fd, mb, theCallback, icap); }