]> git.kaiwu.me - haproxy.git/commit
CLEANUP: http-rules: fix a few '&' vs '&&' checks for clarity
authorWilly Tarreau <w@1wt.eu>
Mon, 11 May 2026 12:54:01 +0000 (14:54 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 11 May 2026 14:04:19 +0000 (16:04 +0200)
commite4e614022b682b56e16285c0422d7cff098eb883
tree336ee6fb2690158defa3e9b85588fcc312d9bfee
parente9cc913e3c474ce94b23f3f509fce20c508302b1
CLEANUP: http-rules: fix a few '&' vs '&&' checks for clarity

In http_re{q,s}_get_intercept_rule(), there are two occurrences of '&'
being used instead of '&&' which fortunately work thanks to the tests
being negations (hence 0/1 on each branch). Let's fix that and take this
opportunity for adding explicit precedence in http_apply_redirect_rule().
src/http_ana.c