]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Christos Tsantilas <chtsanti@users.sourceforge.net>
authorhno <>
Thu, 27 Dec 2007 05:28:56 +0000 (05:28 +0000)
committerhno <>
Thu, 27 Dec 2007 05:28:56 +0000 (05:28 +0000)
Remove unused ieof chunk extension parsing. Only needed in ICAP servers, not clients.

src/ICAP/ChunkedCodingParser.cc

index c71175143c63042e122792c66a4827fc417da905..a7b0e9261f017dcdc5b144c7906f0545f7f2cd9b 100644 (file)
@@ -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);