]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: 51d: Fix bug when HTX is enabled
authorBen51Degrees <Ben@51Degrees.com>
Mon, 20 Jan 2020 11:25:11 +0000 (11:25 +0000)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 20 Jan 2020 13:01:52 +0000 (14:01 +0100)
commit6bf06727116eb48825cf4c4b65970b8305591925
tree440fecbac6df2df1d0a6da7a62dd6eee44c4303c
parentfcac33d0c1138ef22914c3b36518c1df105c9b72
BUG/MINOR: 51d: Fix bug when HTX is enabled

When HTX is enabled, the sample flags were set too early. When matching for
multiple HTTP headers, the sample is fetched more than once, meaning that the
flags would need to be set again. Instead, the flags are now set last (just
before the outermost function returns). This could be further improved by
passing around the message without calling prefetch again.

This patch must be backported as far as 1.9. it should fix bug #450.
src/51d.c