httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r1755234 - /httpd/httpd/trunk/server/protocol.c
Date Thu, 04 Aug 2016 20:48:52 GMT
Author: wrowe
Date: Thu Aug  4 20:48:52 2016
New Revision: 1755234

URL: http://svn.apache.org/viewvc?rev=1755234&view=rev
Log:
An empty obs-fold line is a no-op.


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=1755234&r1=1755233&r2=1755234&view=diff
==============================================================================
--- httpd/httpd/trunk/server/protocol.c (original)
+++ httpd/httpd/trunk/server/protocol.c Thu Aug  4 20:48:52 2016
@@ -858,6 +858,11 @@ AP_DECLARE(void) ap_get_mime_headers_cor
                 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



Mime
View raw message