]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MEDIUM: mux-h2: pass trailers to HTX
authorWilly Tarreau <w@1wt.eu>
Thu, 3 Jan 2019 17:41:05 +0000 (18:41 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 3 Jan 2019 17:45:38 +0000 (18:45 +0100)
When receiving an H2 message in HTX mode, trailers present in chunked
messages are now properly appended to the HTX block.

src/mux_h2.c

index 74c6c0a2e0e492653652db7092a6c21872237927..e192cb39266ddb150cca7970aacfb6489bf1064e 100644 (file)
@@ -3460,9 +3460,8 @@ next_frame:
        if (htx) {
                if (!htx_add_endof(htx, HTX_BLK_EOD))
                        goto fail;
-               /* FIXME: emit the decoded trailers here. EOM will be sent
-                * when leaving.
-                */
+               if (h2_make_htx_trailers(list, htx) <= 0)
+                       goto fail;
        }
        else if (*flags & H2_SF_DATA_CHNK) {
                /* Legacy mode with chunked encoding : we must finalize the