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

How to convert boolean to string

$
0
0

@trococ wrote:

I would like to log if the response is compressed by haproxy or not

this is an example config:

 http-response set-var(txn.comp) yes if { res.comp }    
 http-response set-var(txn.comp) no unless { res.comp }    

log-format compress\ %[txn.comp] 

of course it’s not working.

How can do that?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4731

Trending Articles



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