]> git.ipfire.org Git - thirdparty/haproxy.git/commit
REORG: http: move the log encoding tables to log.c
authorWilly Tarreau <w@1wt.eu>
Mon, 10 Sep 2018 16:16:53 +0000 (18:16 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 11 Sep 2018 08:30:25 +0000 (10:30 +0200)
commite10cd48a83d3faa6aa2c7e1d293275bcdb6cb4ad
tree81a0b3e06fcc13be7e5c1b1860dce4e0234130c7
parent04f1e2d202b7f9f330b1bb678eb8052b4773934b
REORG: http: move the log encoding tables to log.c

There are 3 tables in proto_http which are used exclusively by logs :
hdr_encode_map[], url_encode_map[] and http_encode_map[]. They indicate
what characters are safe to be emitted in logs depending on the part of
the message where they are placed. Let's move this to log.c, as well as
its initialization. It's worth noting that the rfc5424 map was already
initialized there.
src/log.c
src/proto_http.c