]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MEDIUM: mux-h2: don't lose the first response header in HTX mode
authorWilly Tarreau <w@1wt.eu>
Sun, 2 Dec 2018 11:11:16 +0000 (12:11 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 2 Dec 2018 11:31:20 +0000 (12:31 +0100)
When converting response headers from HTX to H2, we accidently skipped
the first header block.

src/mux_h2.c

index 480450e04bd249de5e1ec82c50f6f7a13fd011d9..bd329cc1266f28148430eb1ca060a8e03507bd80 100644 (file)
@@ -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);