From fab9bb08fc8abd27fc3bdcc3f3458121567c194d Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Sun, 2 Dec 2018 12:11:16 +0100 Subject: [PATCH] BUG/MEDIUM: mux-h2: don't lose the first response header in HTX mode When converting response headers from HTX to H2, we accidently skipped the first header block. --- src/mux_h2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mux_h2.c b/src/mux_h2.c index 480450e04b..bd329cc126 100644 --- a/src/mux_h2.c +++ b/src/mux_h2.c @@ -3613,7 +3613,7 @@ static size_t h2s_htx_frt_make_resp_headers(struct h2s *h2s, struct htx *htx) /* and the rest of the headers, that we dump starting at header 0 */ hdr = 0; - idx = htx_get_next(htx, htx->sl_off); + idx = htx->sl_off; while ((idx = htx_get_next(htx, idx)) != -1) { blk = htx_get_blk(htx, idx); type = htx_get_blk_type(blk); -- 2.47.2