I am trying to match the value of a header which has a space in it and cannot figure out what regex expressions haproxy likes. The header I'm after looks like this:
X-Request-ID:'Foo: Bar'
I would be Ok to match exactly this header or anything that starts with it. However, I do NOT want to match 'Foo: Other' My attempts so far:
acl badhdr hdr_sub(X-Request-ID) -i Foo: Bar
Matched anything that starts with Foo
acl badhdr hdr_sub(X-Request-ID) -i Foo:\sBar
didn't match 'Foo: Bar' at all...
Help much appreciated