Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4764

Map function doesn't return default value

$
0
0

@olivia wrote:

I have following HAProxy configuration on 1.8.14

http-request set-var(txn.a) hdr(Origin)
acl x var(txn.a),lower,map(/etc/haproxy/test.map,'false') -m found
http-response    add-header  B  %[var(txn.a)]   if x

I expected the behavior to be that if a request’s Origin header content is present in test.map file, the response will have a new header B with that content. However I’m getting header B set with Origin’s content despite if the content is in test.map or not. What did I do wrong? Thanks for the help in advance.

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4764

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>