]> granicus.if.org Git - apache/commitdiff
An empty obs-fold line is a no-op.
authorWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 4 Aug 2016 20:48:52 +0000 (20:48 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 4 Aug 2016 20:48:52 +0000 (20:48 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1755234 13f79535-47bb-0310-9956-ffa450edef68

server/protocol.c

index 524c9b4fd9a2de77564e3d338246eb27534e97c4..feb8c17ee7fe8729f1058d905feb51125fb7b12c 100644 (file)
@@ -858,6 +858,11 @@ 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;
+            }
+
             /* 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