--------------------- PatchSet 426 Date: 2002/12/20 07:00:10 Author: rbcollins Branch: esi Tag: (none) Log: minor tweaks Members: src/ESI.cc:1.1.2.43->1.1.2.44 Index: squid3/src/ESI.cc =================================================================== RCS file: /cvsroot/squid-sf//squid3/src/ESI.cc,v retrieving revision 1.1.2.43 retrieving revision 1.1.2.44 diff -u -r1.1.2.43 -r1.1.2.44 --- squid3/src/ESI.cc 20 Dec 2002 06:45:17 -0000 1.1.2.43 +++ squid3/src/ESI.cc 20 Dec 2002 07:00:10 -0000 1.1.2.44 @@ -1,6 +1,6 @@ /* - * $Id: ESI.cc,v 1.1.2.43 2002/12/20 06:45:17 rbcollins Exp $ + * $Id: ESI.cc,v 1.1.2.44 2002/12/20 07:00:10 rbcollins Exp $ * * DEBUG: section 86 ESI processing * AUTHOR: Robert Collins @@ -1610,7 +1610,7 @@ return; } #if HEADERS_LOG - /* should be done in the store rather than ever recipient? */ + /* should be done in the store rather than every recipient? */ headersLog(0, 0, http->request->method, rep); #endif httpReplyDestroy(rep); @@ -1719,7 +1719,6 @@ return rv; } - /* Implementation of ESIElements */ /* esiComment */ @@ -1789,8 +1788,6 @@ cbdataReferenceDone (varState); } -/* precondition: the buffer chain has at least start + length bytes of data - */ esiLiteral::esiLiteral(esiSegment *aSegment) { buffer = aSegment; @@ -1800,14 +1797,14 @@ flags.donevars = 1; } +/* precondition: the buffer chain has at least start + length bytes of data + */ esiLiteral::esiLiteral(esiContext *context, const XML_Char *s, int length) { - esiSegment *local; - off_t start; assert (s); buffer = new esiSegment; - local = buffer; - start = 0; + esiSegment *local = buffer; + off_t start = 0; while (length > 0) { off_t len = sizeof (local->buf) - local->len; if (len > length)