]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: mux-h1: make HTX chunking consistent with H2
authorWilly Tarreau <w@1wt.eu>
Thu, 3 Jan 2019 16:39:54 +0000 (17:39 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 3 Jan 2019 16:51:04 +0000 (17:51 +0100)
commit4710d207432c8f7b937707176e512a2a709cf55c
tree4442d3a5e575abb0ae6c8ee3990b8121695f7a64
parent34d234824d6587543a06769dec6e37d026b5baba
BUG/MEDIUM: mux-h1: make HTX chunking consistent with H2

When transfering from H1 to H1, chunking is always indicated by the
presence of the Transfer-encoding header field. But when a message
comes from H2 there is no such header and only HTX_SL_F_XFER_LEN
ought to be relied on. This one will also result in H1_MF_XFER_LEN
to be set, just like transfer-encoding, so let's always rely on
this latter flag to detect the need for chunking (when CLEN is not
here) and automatically add the transfer-encoding header if it was
not present, as reported by H1_MF_CHNK.

This must be backported to 1.9.
src/mux_h1.c