]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: h1: Fail to parse empty transfer coding names
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 9 Jul 2024 06:15:14 +0000 (08:15 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 10 Jul 2024 08:52:20 +0000 (10:52 +0200)
commitb8b01027603ae53fdebc7c63c4dacf0908eaef82
tree43875ca3e402f50625f15edc424f30c4b620a860
parent89bdd8b62aed47a96f8617d2722af916a397cc7d
BUG/MINOR: h1: Fail to parse empty transfer coding names

Empty transfer coding names, inside a comma-separated list, are already
rejected. But it is only by chance. Today, it is detected as an unknown
coding names (not "chunked" concretly). Then, it is handled by the H1
multiplexer as an error and a 422-Unprocessable-Content response is
returned.

So, the error is properly detected in this case, but it is not accurate. A
400-bad-request response must be returned instead. Then, it is better to
catch the error during the header parsing. It is the purpose of this patch.

This patch should be backported as far as 2.6.
src/h1.c