--------------------- PatchSet 7210 Date: 2006/02/17 12:43:35 Author: oliv3 Branch: icap-2_5 Tag: (none) Log: Applied the "http0.9fix" patch from Graeme Bisset http://www.squid-cache.org/mail-archive/squid-dev/200601/0010.html Members: src/icap_respmod.c:1.1.2.62->1.1.2.63 Index: squid/src/icap_respmod.c =================================================================== RCS file: /cvsroot/squid-sf//squid/src/Attic/icap_respmod.c,v retrieving revision 1.1.2.62 retrieving revision 1.1.2.63 diff -u -r1.1.2.62 -r1.1.2.63 --- squid/src/icap_respmod.c 17 Feb 2006 12:41:16 -0000 1.1.2.62 +++ squid/src/icap_respmod.c 17 Feb 2006 12:43:35 -0000 1.1.2.63 @@ -1,6 +1,6 @@ /* - * $Id: icap_respmod.c,v 1.1.2.62 2006/02/17 12:41:16 oliv3 Exp $ + * $Id: icap_respmod.c,v 1.1.2.63 2006/02/17 12:43:35 oliv3 Exp $ * * DEBUG: section 81 Internet Content Adaptation Protocol (ICAP) Client * AUTHOR: Geetha Manjunath, Hewlett Packard Company @@ -108,6 +108,9 @@ consumed = -1; o2 = -1; memBufDefInit(&mb_hdr); + httpBuildRequestPrefix(icap->request, icap->request, + icap->respmod.entry, &mb_hdr, icap->http_flags); + o3 = mb_hdr.size; } else { hlen = headersEnd(icap->respmod.req_hdr_copy.buf, @@ -136,12 +139,12 @@ httpBuildRequestPrefix(icap->request, icap->request, icap->respmod.entry, &mb_hdr, icap->http_flags); o2 = mb_hdr.size; - } - /* Copy response header - Append to request header mbuffer */ - memBufAppend(&mb_hdr, - icap->respmod.req_hdr_copy.buf, icap->respmod.req_hdr_copy.size); - o3 = mb_hdr.size; + /* Copy response header - Append to request header mbuffer */ + memBufAppend(&mb_hdr, + icap->respmod.req_hdr_copy.buf, icap->respmod.req_hdr_copy.size); + o3 = mb_hdr.size; + } service = icap->current_service; assert(service);