httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r1524192 - /httpd/httpd/trunk/server/protocol.c
Date Tue, 17 Sep 2013 19:44:08 GMT
Author: jim
Date: Tue Sep 17 19:44:08 2013
New Revision: 1524192

URL: http://svn.apache.org/r1524192
Log:
Update rationale

Modified:
    httpd/httpd/trunk/server/protocol.c

Modified: httpd/httpd/trunk/server/protocol.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/protocol.c?rev=1524192&r1=1524191&r2=1524192&view=diff
==============================================================================
--- httpd/httpd/trunk/server/protocol.c (original)
+++ httpd/httpd/trunk/server/protocol.c Tue Sep 17 19:44:08 2013
@@ -1104,10 +1104,12 @@ request_rec *ap_read_request(conn_rec *c
 
         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");
         }
     }



Mime
View raw message