]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Update rationale
authorJim Jagielski <jim@apache.org>
Tue, 17 Sep 2013 19:44:08 +0000 (19:44 +0000)
committerJim Jagielski <jim@apache.org>
Tue, 17 Sep 2013 19:44:08 +0000 (19:44 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1524192 13f79535-47bb-0310-9956-ffa450edef68

server/protocol.c

index c1ecae705bc9b1242912d3869530ddc1d367fef0..f011656b09a3eb84c2c3306a125bac9916fa8a20 100644 (file)
@@ -1104,10 +1104,12 @@ request_rec *ap_read_request(conn_rec *conn)
 
         if (apr_table_get(r->headers_in, "Transfer-Encoding")
             && apr_table_get(r->headers_in, "Content-Length")) {
-            /* 2616 section 4.4, point 3: "if both Transfer-Encoding
-             * and Content-Length are received, the latter MUST be
-             * ignored"; so unset it here to prevent any confusion
-             * later. */
+            /* http://tools.ietf.org/html/draft-ietf-httpbis-p1-messaging-23#page-31
+             * "If a message is received with both a Transfer-Encoding and a
+             * Content-Length header field, the Transfer-Encoding overrides the
+             * Content-Length. ... A sender MUST remove the received Content-
+             * Length field"
+             */
             apr_table_unset(r->headers_in, "Content-Length");
         }
     }