Http-header not being modified after upgrade

Hi, I was using HAProxy version 1.8 and now I’m using 2.4.17. After this update one of our rules stopped working with this message:

parsing [/etc/haproxy/haproxy.cfg:234] : anonymous acl will never match because it uses keyword ‘hdr_sub’ which is incompatible with ‘backend http-response header rule’

This is the rule that was in use before and its not working anymore.

http-response replace-header Location ^(.)//(.?)/(.*)$ \1//\\3 unless { hdr_sub(location) -i }



hard to say without the full config.

I would say it’s something about request header vs response header.