From: William A. Rowe Jr Date: Fri, 29 Jul 2016 16:24:14 +0000 (+0000) Subject: Strictly observe spec on obs-fold X-Git-Tag: 2.5.0-alpha~1358 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3987f79eb6a5d8ec7223d978c16221f80e81d465;p=apache Strictly observe spec on obs-fold git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1754548 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/protocol.c b/server/protocol.c index 7fcf74c09f..e5cc5cc74a 100644 --- a/server/protocol.c +++ b/server/protocol.c @@ -879,6 +879,10 @@ AP_DECLARE(void) ap_get_mime_headers_core(request_rec *r, apr_bucket_brigade *bb last_field = fold_buf; } memcpy(last_field + last_len, field, len +1); /* +1 for nul */ + /* Replace obs-fold w/ SP per RFC 7230 3.2.4 */ + if (conf->http_conformance & AP_HTTP_CONFORMANCE_STRICT) { + last_field[last_len] = ' '; + } last_len += len; folded = 1; }