Query string not matching in ACL

Hello all,

I am trying to use the query string in the client’s request as component for an ACL but cannot get it to work.
My goal is to create an ACL that will only match if the the URL does not contain a a query string.

Using 1.7.1 I’ve tried to use the “query” paramter described here: HAProxy version 1.7.14 - Configuration Manual

Something along the lines of

acl has_sq query -m found

I’ve also tried to work with the “urlp” parameter but no avail. I’ve tried a dozen of combinations but the ACL just never seems to match.

Can anybody point me at what I am doing wrong or has a working example?

Thanks!

Can you provide the complete configuration and the output of haproxy -vv?