I attempted to upgrade from 2.2 to 2.4 but some health checks return http status 400 “bad request”.
I know that it is totally valid to send content-length: 0 for GET requests according to the RFC’s but there
are many applications that do not consider those valid and return the 400 status.
So my question is whether it is possible to prevent haproxy from appending the content-length header
to http checks or not.
I have tried the following
option httpchk on it’s own
option httpchk GET /status HTTP/1.0
http-check send meth GET uri /status var HTTP/1.1 hdr Host xxx.xxx.xxx hdr User-Agent "Haproxy Health Check"
http-check send meth GET uri /status ver HTTP/1.0
and all of them add the content-length: 0 header
thank you for your time