From: William A. Rowe Jr Date: Thu, 4 Aug 2016 20:51:49 +0000 (+0000) Subject: Now eliminate all intra-obs-fold excess whitespace, results condensed per spec. X-Git-Tag: 2.5.0-alpha~1328 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3a8a5da7274ce2e7b370aca28dfed8c25849eba5;p=thirdparty%2Fapache%2Fhttpd.git Now eliminate all intra-obs-fold excess whitespace, results condensed per spec. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1755235 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/protocol.c b/server/protocol.c index feb8c17ee7f..2221b1f9a83 100644 --- a/server/protocol.c +++ b/server/protocol.c @@ -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