]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: mux-h1: fix 414 / 431 status code reporting
authorMaximilian Moehl <maximilian@moehl.eu>
Wed, 5 Nov 2025 09:28:12 +0000 (10:28 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 5 Nov 2025 09:55:18 +0000 (10:55 +0100)
commit0799fd10729be894185faeb3e31333a5594eaebb
tree14c904dfd93e2b2843a99c5f17e60130b6293a37
parent06821dc1897c48555dc9047ca534060cfa99440d
BUG/MEDIUM: mux-h1: fix 414 / 431 status code reporting

The more detailed status code reporting introduced with bc967758a2 is
checking against the error state to determine whether it is a too long
URL or too large headers. The check used always returns true which
results in a 414 as the error state is only set at a later point.

This commit adjusts the check to use the current state instead to return
the intended status code.

This patch must be backported as far as 3.1.
src/h1_htx.c