BUG/MINOR: mux-h1/mux-fcgi: Sanitize TE header to only send "trailers"
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 28 Sep 2021 08:56:36 +0000 (10:56 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 4 Oct 2021 16:07:20 +0000 (18:07 +0200)
commita68de6807630f6ce734f7639736b949a99f7c3cf
tree029684b2195522b6cd757e98e2ce4cebc2fce5c0
parentb69930a20462fc6d489faceadb5606cb3b06dfbf
BUG/MINOR: mux-h1/mux-fcgi: Sanitize TE header to only send "trailers"

Only chunk-encoded response payloads are supported by HAProxy. All other
transfer encodings are not supported and will be an issue if the HTTP
compression is enabled. So be sure only "trailers" is send in TE request
headers.

The patch is related to the issue #1301. It must be backported to all stable
versions. Be carefull for 2.0 and lower because the HTTP legacy must also be
fixed.

(cherry picked from commit f56e8465f067c84b820dbedd89e6f44f1e02c179)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit f9bb8d0fbcc945e15e8d1dc8ed792b27f1ca693b)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/mux_fcgi.c
src/mux_h1.c