]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: log: add no_escape_map to bypass escape with _lf_encode_bytes()
authorAurelien DARRAGON <adarragon@haproxy.com>
Fri, 26 Apr 2024 12:23:43 +0000 (14:23 +0200)
committerAurelien DARRAGON <adarragon@haproxy.com>
Fri, 26 Apr 2024 16:39:31 +0000 (18:39 +0200)
commit162e311a0e8dfb96525af321c000b5a9d5857d19
tree15db96e9a7cf1677763657207cd44b78c949d5d9
parent2caa921abff070e5c946a7d2717842562166340f
MINOR: log: add no_escape_map to bypass escape with _lf_encode_bytes()

Providing no_escape_map as <map> argument to _lf_encode_bytes() function
will make the function skip escaping since the map is empty.

This is for convenience, as it might be useful to call lf_encode_chunk()
to encoding binary data without escaping it.
src/log.c