]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: config: Fix parsing of accept-invalid-http-{request,response}
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 4 Dec 2024 09:47:35 +0000 (10:47 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 5 Dec 2024 21:02:58 +0000 (22:02 +0100)
commitbc453c51066beb8ed05baa6636fcb471b9d103ca
tree438a900af1524d54f18342abbed64bcead224190
parent7885a3b3e159323ae3e67f7bbfb4567f2031dc9e
BUG/MINOR: config: Fix parsing of accept-invalid-http-{request,response}

These options are now deprectated, but the proxy capabilities are not
properly checked during the configuration parsing leading to always ignore
these options. This is now fixed by checking the frontend capability for
"accept-invalid-http-request" option and the backend capability for
"accept-invalid-http-response" option.

In addition, the messages about the deprecation of these options are now
emitted with ha_warning() instead of ha_alert() because they are only
warnings and not errors.

This patch should fix the issue #2806. It must be backported to 3.1.
src/cfgparse-listen.c