From: Amos Jeffries Date: Tue, 3 Nov 2009 10:01:15 +0000 (+1300) Subject: ICY: Prevent de-chunking in non-HTTP replies. X-Git-Tag: SQUID_3_2_0_1~622 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ca8ef94f307fe78caedbe85e3e7a82327b922a41;p=thirdparty%2Fsquid.git ICY: Prevent de-chunking in non-HTTP replies. Fixes the unexpected but possible case of ICY protocol with a TE header. --- diff --git a/src/http.cc b/src/http.cc index 248fa17146..c45c6a1566 100644 --- a/src/http.cc +++ b/src/http.cc @@ -718,7 +718,7 @@ HttpStateData::processReplyHeader() } flags.chunked = 0; - if (newrep->header.hasListMember(HDR_TRANSFER_ENCODING, "chunked", ',')) { + if (newrep->sline.protocol == PROTO_HTTP && newrep->header.hasListMember(HDR_TRANSFER_ENCODING, "chunked", ',')) { flags.chunked = 1; httpChunkDecoder = new ChunkedCodingParser; }