]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: mux-h2: make sure we don't emit TE headers with anything but "trailers"
authorWilly Tarreau <w@1wt.eu>
Fri, 24 Jan 2020 08:07:53 +0000 (09:07 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 24 Jan 2020 08:07:53 +0000 (09:07 +0100)
commitbb2c4ae06566b8a8789caca4c48524aeb88cbc1b
tree6b48d7e54f8d00e9d09bd0149112b6095fd9f6fb
parent508d232a06cf082ff2cc694d3f1c03b10a07e719
BUG/MEDIUM: mux-h2: make sure we don't emit TE headers with anything but "trailers"

While the H2 parser properly checks for the absence of anything but
"trailers" in the TE header field, we forget to check this when sending
the request to an H2 server. The problem is that an H2->H2 conversion
may keep "gzip" and fail on the next stage.

This patch makes sure that we only send "TE: trailers" if the TE header
contains the "trailers" token, otherwise it's dropped.

This fixes issue #464 and should be backported till 1.9.
src/mux_h2.c