Hi all,

I'm using this snippet in the config of version 1.5.14 of haproxy:

http-request redirect location 
https://www.domain.%[req.fhdr(accept-language),lower,language(de-at;de-ch,de),map(/etc/haproxy/language-map.txt,de)]/
 code 301

As soon as there is NO Accept-Language-Header in the request
the whole substitution part evaluates to '' (empty string).
Why is this the case as I thought that the defaulting of 'language' and 'map'
should give a 'de'.

Can someone please explain? What is the way around this?

Best regards
Andreas


Reply via email to