summaryrefslogtreecommitdiff
path: root/modules/http2/h2_headers.c
diff options
context:
space:
mode:
authorStefan Eissing <icing@apache.org>2021-10-14 09:58:37 +0000
committerStefan Eissing <icing@apache.org>2021-10-14 09:58:37 +0000
commitf23144a627f4698e76b406ac28559fd20ba5e8a3 (patch)
treed458da077ce7dfecdbe137a0189b18e2909e8623 /modules/http2/h2_headers.c
parent4fc7e978f0322ce90fafdad59bb275314b44a598 (diff)
downloadhttpd-f23144a627f4698e76b406ac28559fd20ba5e8a3.tar.gz
*) mod_http2: H2HEADER buckets have the correct lenght of zero and no
longer smuggle the contained field lengths in this field. Instead the bytes reportded to mod_logio are counted specifically. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1894226 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/http2/h2_headers.c')
-rw-r--r--modules/http2/h2_headers.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/http2/h2_headers.c b/modules/http2/h2_headers.c
index 29d86fdff2..c1a6a8c333 100644
--- a/modules/http2/h2_headers.c
+++ b/modules/http2/h2_headers.c
@@ -64,7 +64,7 @@ apr_bucket * h2_bucket_headers_make(apr_bucket *b, h2_headers *r)
b = apr_bucket_shared_make(b, br, 0, 0);
b->type = &h2_bucket_type_headers;
- b->length = h2_headers_length(r);
+ b->length = 0;
return b;
}
@@ -140,6 +140,12 @@ apr_size_t h2_headers_length(h2_headers *headers)
return len;
}
+apr_size_t h2_bucket_headers_headers_length(apr_bucket *b)
+{
+ h2_headers *h = h2_bucket_headers_get(b);
+ return h? h2_headers_length(h) : 0;
+}
+
h2_headers *h2_headers_rcreate(request_rec *r, int status,
const apr_table_t *header, apr_pool_t *pool)
{