You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by wr...@apache.org on 2016/08/04 21:43:01 UTC

svn commit: r1755236 - /httpd/httpd/trunk/server/protocol.c

Author: wrowe
Date: Thu Aug  4 21:43:01 2016
New Revision: 1755236

URL: http://svn.apache.org/viewvc?rev=1755236&view=rev
Log:
Strictly observe the one-SP requirement of every obs-fold line.


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=1755236&r1=1755235&r2=1755236&view=diff
==============================================================================
--- httpd/httpd/trunk/server/protocol.c (original)
+++ httpd/httpd/trunk/server/protocol.c Thu Aug  4 21:43:01 2016
@@ -858,15 +858,12 @@ AP_DECLARE(void) ap_get_mime_headers_cor
                 return;
             }
 
-            /* An empty obs-fold line can simply be ignored... */
-            if (field[1] == '\0') {
-                continue;
-            }
-
-            /* ...and leading whitespace on an obs-fold line can be
-             * similarly discarded */
-            while (field[1] == '\t' || field[1] == ' ') {
-                ++field; --len;
+            if (field[1] != '\0') {
+                /* ...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),