]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: http-fetch: Update method after a prefetch in smp_fetch_meth()
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 4 Oct 2022 06:58:02 +0000 (08:58 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 4 Oct 2022 07:16:36 +0000 (09:16 +0200)
commiteefcd8a97de7d1b05b38d240b1061e2f2112f2f8
treef15c1fd3d0ccee3dbd5b215adeab71dc24907d1c
parentc06557c23b0e4e932405fe3f0739c303ac90926e
BUG/MINOR: http-fetch: Update method after a prefetch in smp_fetch_meth()

In smp_fetch_meth(), smp_prefetch_htx() function may be called to parse the
HTX message and update the HTTP transaction accordingly. In this case, in
smp_fetch_metch() and on success, we must update "meth" variable. Otherwise,
the variable is still equal to HTTP_METH_OTHER and the string version is
always used instead of the enum for known methods.

This patch must be backported as far as 2.0.
src/http_fetch.c