HAProxy community

Http-request capture only logging partial X-Forward-For data

Running on HA-Proxy version 1.7.11 I am able to log full X-Forward-For information with the old:
capture request header X-Forwarded-For len 64
e.g. 192.168.1.10, 192.168.2.10, 192.168.3.10
However if using:
http-request capture req.hdr(X-Forwarded-For) len 64
I am only able to capture the last entry in the chain - 192.168.3.10.

Is this by design?
I’d like to use the newer option as it allows me to place the command in appropriate locations in the file for troubleshooting.
Thanks
Chris

https://cbonte.github.io/haproxy-dconv/1.9/configuration.html#7.3.6-req.hdr

The function considers any comma as a delimiter for distinct values. If full-line headers
are desired instead, use req.fhdr().

That’s perfect, exactly what I needed.
Thank you
Chris