]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: h1-htx: Use default reason if not set when formatting the response
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 29 Nov 2024 13:31:21 +0000 (14:31 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 29 Nov 2024 13:46:38 +0000 (14:46 +0100)
commit37487ada739fc86e3acb46c9949196f4f15cc9b1
tree749421c0db4e1cc7d9c2d45be4cf96275f9dbd30
parent62f37801c881f68060cedb7a74b5b8cb5fcfec81
BUG/MINOR: h1-htx: Use default reason if not set when formatting the response

When the response status line is formatted before sending it to the client,
if there is no reason set, HAProxy should add one that matches the status
code, as stated in the configuration manual. However it is not performed.

It is possible to hit this bug when the response comes from a H2 server,
because there is no reason field in HTTP/2 and above.

This patch should fix the issue #2798. It should be backported to all stable
versions.
src/h1_htx.c