There are definitely not enough information’s in here to provide the answer.
The configuration snippet you posted should be correct, I don’t see anything wrong with it. Are you positive that haproxy actually receives your request?
Please provide the full configuration, the output of haproxy -vv
, enable logging (in tcp mode) and provide those logs.