From: hno <> Date: Thu, 27 Dec 2007 05:28:56 +0000 (+0000) Subject: Author: Christos Tsantilas X-Git-Tag: BASIC_TPROXY4~231 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd42cb252ac6386bf979fa38f87bd23c7398c710;p=thirdparty%2Fsquid.git Author: Christos Tsantilas Remove unused ieof chunk extension parsing. Only needed in ICAP servers, not clients. --- diff --git a/src/ICAP/ChunkedCodingParser.cc b/src/ICAP/ChunkedCodingParser.cc index c71175143c..a7b0e9261f 100644 --- a/src/ICAP/ChunkedCodingParser.cc +++ b/src/ICAP/ChunkedCodingParser.cc @@ -20,7 +20,6 @@ void ChunkedCodingParser::reset() theStep = psChunkBeg; theChunkSize = theLeftBodySize = 0; doNeedMoreData = false; - sawIeof = false; theIn = theOut = NULL; } @@ -75,18 +74,6 @@ void ChunkedCodingParser::parseChunkBeg() return; } - // check for ieof chunk extension in the last-chunk - if (size == 0 && p && *p++ == ';') { - const char *e = theIn->content() + crlfBeg; // end of extension - - while (p < e && xisspace(*p)) - ++p; // skip space - - sawIeof = e - p >= 4 && - strncmp(p, "ieof", 4) == 0 && - xisspace(p[4]); - } - theIn->consume(crlfEnd); theChunkSize = theLeftBodySize = size; debugs(93,7, "found chunk: " << theChunkSize);