From 3a8a5da7274ce2e7b370aca28dfed8c25849eba5 Mon Sep 17 00:00:00 2001 From: "William A. Rowe Jr" Date: Thu, 4 Aug 2016 20:51:49 +0000 Subject: [PATCH] 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 --- server/protocol.c | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.47.3