Haproxy removing Content-Length header if Transfer-Encoding header is found

Hi.

I noticed that sending a request through my proxy with these headers

  • Content-Length: value
  • Transfer-Encoding: value
    The message arrived on the other side as such
  • Transfer-Encoding: value

For a very specific setup, I would like to disable this. So I’d like for that header to remain. Is that possible somewhere?

Note: I am aware that this has impact on my security. That’s okay.

Your best bet is to use TCP based load-balancing instead (mode tcp), I don’t think it is possible otherwise.

Thanks!