]> granicus.if.org Git - apache/commitdiff
if Transfer-Encoding is not "identity" ignore Content-Length.
authorJean-Frederic Clere <jfclere@apache.org>
Fri, 17 Jun 2005 16:47:43 +0000 (16:47 +0000)
committerJean-Frederic Clere <jfclere@apache.org>
Fri, 17 Jun 2005 16:47:43 +0000 (16:47 +0000)
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

server/protocol.c

index 7b0d15ff0f49a987b3b428fd11a63c306122df7f..050de39e822d869ee28810733ff9fd202fa46d84 100644 (file)
@@ -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");
             }
         }