]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: http_ext: fix if-none regression in forwardfor option
authorAurelien DARRAGON <adarragon@haproxy.com>
Tue, 20 Jun 2023 12:55:11 +0000 (14:55 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 20 Jun 2023 13:32:56 +0000 (15:32 +0200)
commitd35cee972b6e2183f44c79462b1c2fcf22ed7987
tree83d31e118995428181483a238ce6afb91ba55677
parenta150cfcfec7c5bb3b6ddb01a87df067e950ef97b
BUG/MINOR: http_ext: fix if-none regression in forwardfor option

A regression was introduced in 730b983 ("MINOR: proxy: move 'forwardfor'
option to http_ext")

Indeed, when the forwardfor if-none option is specified on the frontend
but forwardfor is not specified at all on the backend: if-none from the
frontend is ignored.

But this behavior conflicts with the historical one, if-none should only
be ignored if forwardfor is also enabled on the backend and if-none is
not set there.

It should fix GH #2187.

This should be backported in 2.8 with 730b983 ("MINOR: proxy: move
'forwardfor' option to http_ext")
src/http_ext.c