From: William A. Rowe Jr Date: Thu, 4 Aug 2016 20:48:52 +0000 (+0000) Subject: An empty obs-fold line is a no-op. X-Git-Tag: 2.5.0-alpha~1329 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=39063979031159a75cc961adf9b6bf7e40ebca19;p=thirdparty%2Fapache%2Fhttpd.git An empty obs-fold line is a no-op. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1755234 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/protocol.c b/server/protocol.c index 524c9b4fd9a..feb8c17ee7f 100644 --- a/server/protocol.c +++ b/server/protocol.c @@ -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