From: Jean-Frederic Clere Date: Fri, 17 Jun 2005 16:47:43 +0000 (+0000) Subject: if Transfer-Encoding is not "identity" ignore Content-Length. X-Git-Tag: 2.1.6~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=383bae1ebc17b3f77c61224bc6e0873c2837930f;p=apache if Transfer-Encoding is not "identity" ignore Content-Length. otherwise ajp-proxy hangs when Transfer-Encoding is "chunked". git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@191175 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/protocol.c b/server/protocol.c index 7b0d15ff0f..050de39e82 100644 --- a/server/protocol.c +++ b/server/protocol.c @@ -906,7 +906,7 @@ request_rec *ap_read_request(conn_rec *conn) * the RFC says we MUST ignore the C-L header. We kill it here * to prevent more work later on in modules like mod_proxy. */ - if (te && !strcasecmp("identity", te)) { + if (te && strcasecmp("identity", te) != 0) { apr_table_unset(r->headers_in, "Content-Length"); } }