]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Strictly observe the one-SP requirement of every obs-fold line.
authorWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 4 Aug 2016 21:43:01 +0000 (21:43 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 4 Aug 2016 21:43:01 +0000 (21:43 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1755236 13f79535-47bb-0310-9956-ffa450edef68

server/protocol.c

index 2221b1f9a830a4e5ced38eb3af0aefcbb9e52202..e65b062e5e26849030c26161c9d905102dd15c84 100644 (file)
@@ -858,15 +858,12 @@ AP_DECLARE(void) ap_get_mime_headers_core(request_rec *r, apr_bucket_brigade *bb
                 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),