--- privoxy-3.0.3-stable.old/parsers.c +++ privoxy-3.0.3-stable/parsers.c @@ -871,8 +871,7 @@ * * Description : - Prohibit filtering (CT_TABOO) if transfer coding compresses * - Raise the CSP_FLAG_CHUNKED flag if coding is "chunked" - * - Change from "chunked" to "identity" if body was chunked - * but has been de-chunked for filtering. + * - Remove if chunked body was de-chunked for filtering. * * Parameters : * 1 : csp = Current client state (buffers, headers, etc...) @@ -904,13 +903,13 @@ /* * If the body was modified, it has been - * de-chunked first, so adjust the header: + * de-chunked first, so remove the header. + * Don't use "identity" encoding, which was included in + * RFC 2616 by mistake (http://purl.org/NET/http-errata#identity). */ if (csp->flags & CSP_FLAG_MODIFIED) { freez(*header); - *header = strdup("Transfer-Encoding: identity"); - return (header == NULL) ? JB_ERR_MEMORY : JB_ERR_OK; } }