diff options
author | Stefan Eissing <icing@apache.org> | 2022-03-21 09:02:51 +0000 |
---|---|---|
committer | Stefan Eissing <icing@apache.org> | 2022-03-21 09:02:51 +0000 |
commit | 2039323af35fe544f3f36bbc4b45a42a5f28da4c (patch) | |
tree | 9633d5ee9b22ef8c435b5d42a61bacfa5b1eb0af /modules/http2/h2_headers.c | |
parent | 32efaf07fd89a4c3fe86ddbaf0ab439463da5604 (diff) | |
download | httpd-2039323af35fe544f3f36bbc4b45a42a5f28da4c.tar.gz |
*) mod_http2: remove internal bucket beamer registry and just
copy well-known meta buckets in a beam. Was too generic.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1899105 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/http2/h2_headers.c')
-rw-r--r-- | modules/http2/h2_headers.c | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/modules/http2/h2_headers.c b/modules/http2/h2_headers.c index 3aab859c7b..fbeeba3901 100644 --- a/modules/http2/h2_headers.c +++ b/modules/http2/h2_headers.c @@ -98,18 +98,13 @@ const apr_bucket_type_t h2_bucket_type_headers = { apr_bucket_shared_copy }; -apr_bucket *h2_bucket_headers_beam(struct h2_bucket_beam *beam, - apr_bucket_brigade *dest, - const apr_bucket *src) +apr_bucket *h2_bucket_headers_clone(apr_bucket *src, apr_pool_t *p, apr_bucket_alloc_t *list) { - if (H2_BUCKET_IS_HEADERS(src)) { - h2_headers *src_headers = ((h2_bucket_headers *)src->data)->headers; - apr_bucket *b = h2_bucket_headers_create(dest->bucket_alloc, - h2_headers_clone(dest->p, src_headers)); - APR_BRIGADE_INSERT_TAIL(dest, b); - return b; - } - return NULL; + h2_headers *src_headers; + + AP_DEBUG_ASSERT(H2_BUCKET_IS_HEADERS(src)); + src_headers = ((h2_bucket_headers *)src->data)->headers; + return h2_bucket_headers_create(list, h2_headers_clone(p, src_headers)); } |