MINOR: checks: Make matching on HTTP headers for expect rules less obscure
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 7 May 2020 13:41:39 +0000 (15:41 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 7 May 2020 13:41:41 +0000 (15:41 +0200)
commit083eff37348f9bae8157af93c27f4d6bc89877e5
tree8fe844726f1b7c96d1e505a4ab48fdb2957fc2b9
parentd888f0fc6ee63abf9dbdab49adf14b63f3ccb1ad
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.
src/checks.c