httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r1755235 - /httpd/httpd/trunk/server/protocol.c
Date Thu, 04 Aug 2016 20:51:50 GMT
Author: wrowe
Date: Thu Aug  4 20:51:49 2016
New Revision: 1755235

URL: http://svn.apache.org/viewvc?rev=1755235&view=rev
Log:
Now eliminate all intra-obs-fold excess whitespace, results condensed per spec.

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=1755235&r1=1755234&r2=1755235&view=diff
==============================================================================
--- httpd/httpd/trunk/server/protocol.c (original)
+++ httpd/httpd/trunk/server/protocol.c Thu Aug  4 20:51:49 2016
@@ -863,6 +863,12 @@ AP_DECLARE(void) ap_get_mime_headers_cor
                 continue;
             }
 
+            /* ...and leading whitespace on an obs-fold line can be
+             * similarly discarded */
+            while (field[1] == '\t' || field[1] == ' ') {
+                ++field; --len;
+            }
+
             /* This line is a continuation of the preceding line(s),
              * so append it to the line that we've set aside.
              * Note: this uses a power-of-two allocator to avoid



Mime
View raw message