]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: checks: Simplify matching on HTTP headers in HTTP expect rules
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 5 May 2020 18:23:13 +0000 (20:23 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 6 May 2020 10:42:36 +0000 (12:42 +0200)
commitb5594265d2abb74676d1b0f8e5768d87d5d6b5ec
tree6b0e6bc1776d7459e8654e02414d64f3b003a009
parentb50b3e6d0adb2abb5b304bcb7784294814d8da0b
MINOR: checks: Simplify matching on HTTP headers in HTTP expect rules

Extra parameters on http-check expect rules, for the header matching method, to
use log-format string or to match full header line have been removed. There is
now separate matching methods to match a full header line or to match each
comma-separated values. "http-check expect fhdr" must be used in the first case,
and "http-check expect hdr" in the second one. In addition, to match log-format
header name or value, "-lf" suffix must be added to "name" or "value"
keyword. For intance:

   http-check expect hdr name "set-cookie" value-lf -m beg "sessid=%[var(check.cookie)]"

Thanks to this changes, each parameter may only be interpreted in one way.
doc/configuration.txt
reg-tests/checks/http-check-expect.vtc
src/checks.c