From 298dfe11dd5d06477ee08a70bcce350803bd2f2a Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Fri, 18 Sep 2026 10:11:16 +0200 Subject: [PATCH] MINOR: mux-h1: Only handle RAW_DATA blocks when emitting tunneled data As expected, now the changes to properly handle the RAW_DATA blocs were performed, the h1_make_tunnel() function is updated to only handle RAW_DATA blocks. --- src/mux_h1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mux_h1.c b/src/mux_h1.c index 63ba86fe4..5ae5a7bae 100644 --- a/src/mux_h1.c +++ b/src/mux_h1.c @@ -3326,7 +3326,7 @@ static size_t h1_make_tunnel(struct h1s *h1s, struct h1m *h1m, struct buffer *bu */ if (!b_data(&h1c->obuf) && htx_nbblks(htx) == 1 && - htx_is_data_type(htx_get_blk_type(blk)) && + htx_get_blk_type(blk) == HTX_BLK_RAW_DATA && htx_get_blksz(blk) == count && b_size(&h1c->obuf) == b_size(buf)) { void *old_area; @@ -3358,7 +3358,7 @@ static size_t h1_make_tunnel(struct h1s *h1s, struct h1m *h1m, struct buffer *bu sz = htx_get_blksz(blk); vlen = sz; - if (htx_is_data_type(type)) { + if (type == HTX_BLK_RAW_DATA) { if (vlen > count) { /* Get the maximum amount of data we can xferred */ vlen = count; -- 2.47.3