]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Now eliminate all intra-obs-fold excess whitespace, results condensed per spec.
authorWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 4 Aug 2016 20:51:49 +0000 (20:51 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 4 Aug 2016 20:51:49 +0000 (20:51 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1755235 13f79535-47bb-0310-9956-ffa450edef68

server/protocol.c

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