From add4d79313895a935ffa0967d0187a59fdccd75f Mon Sep 17 00:00:00 2001 From: Stefan Eissing Date: Tue, 4 Nov 2025 16:25:06 +0100 Subject: [PATCH] trailer header, fix length handling --- mod_http2/h2_util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod_http2/h2_util.c b/mod_http2/h2_util.c index 2b2375a1..8c1597da 100644 --- a/mod_http2/h2_util.c +++ b/mod_http2/h2_util.c @@ -1677,7 +1677,7 @@ int h2_ignore_req_trailer(const char *name, size_t len) nghttp2_nv nv; nv.name = (uint8_t*)name; - nv.namelen = strlen(name); + nv.namelen = len; return (h2_req_ignore_header(&nv) || contains_name(H2_LIT_ARGS(IgnoredRequestTrailers), &nv)); } @@ -1687,7 +1687,7 @@ int h2_ignore_resp_trailer(const char *name, size_t len) nghttp2_nv nv; nv.name = (uint8_t*)name; - nv.namelen = strlen(name); + nv.namelen = len; return (contains_name(H2_LIT_ARGS(IgnoredResponseHeaders), &nv) || contains_name(H2_LIT_ARGS(IgnoredResponseTrailers), &nv)); }