]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mux-h1: Do not send a last null chunk on body-less answers
authorMickael Torres <ghub@mtorres.fr>
Wed, 16 Nov 2022 13:29:37 +0000 (14:29 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 16 Nov 2022 15:25:26 +0000 (16:25 +0100)
commit226082d13a0d0b83114e933b3a63916b18f9824b
treecf1f47b71edc3f062261bde195caa6e1a6b4864f
parenta58af5b0a1b2826725c33a81a0fd0b1fb891dd38
BUG/MINOR: mux-h1: Do not send a last null chunk on body-less answers

HEAD answers should not contain any body data. Currently when a
"transfer-encoding: chunked" header is returned, a last null-chunk is added to
the answer. Some clients choke on it and fail when trying to reuse the
connection. Check that the response should not be body-less before sending the
null-chunk.

This patch should fix #1932. It must be backported as far as 2.4.
src/mux_h1.c