commit | 083eff37348f9bae8157af93c27f4d6bc89877e5 | [log] [tgz] |
---|---|---|
author | Christopher Faulet <cfaulet@haproxy.com> | Thu May 07 15:41:39 2020 +0200 |
committer | Christopher Faulet <cfaulet@haproxy.com> | Thu May 07 15:41:41 2020 +0200 |
tree | 8fe844726f1b7c96d1e505a4ab48fdb2957fc2b9 | |
parent | d888f0fc6ee63abf9dbdab49adf14b63f3ccb1ad [diff] |
MINOR: checks: Make matching on HTTP headers for expect rules less obscure A default statement in the switch testing the header name has been added to be sure it is impossible to eval the value pattern on an uninitialized header value. It should never happen of course. But this way, it is explicit. And a comment has been added to make clear that ctx.value is always defined when it is evaluated. This patch fixes the issue #619.