]> granicus.if.org Git - apache/commitdiff
fix folding when the continuation charater is a blank
authorGreg Ames <gregames@apache.org>
Mon, 8 Jul 2002 17:36:41 +0000 (17:36 +0000)
committerGreg Ames <gregames@apache.org>
Mon, 8 Jul 2002 17:36:41 +0000 (17:36 +0000)
Reported by: one of Jeff T's regression test cases

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95975 13f79535-47bb-0310-9956-ffa450edef68

server/protocol.c

index b68460955e67a2797a329dac63c0042bffa6288c..9de5372bcb2dd1b1572789b1ca81924d6f564fbe 100644 (file)
@@ -792,7 +792,7 @@ AP_DECLARE(void) ap_get_mime_headers_core(request_rec *r, apr_bucket_brigade *bb
         }
 
         if (last_field != NULL) {
-            if ((len > 0) && (*field == '\t')) {
+            if ((len > 0) && ((*field == '\t') || *field == ' ')) {
                 /* 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