]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: log: emit '-' for empty fields again
authorWilly Tarreau <w@1wt.eu>
Tue, 5 Feb 2013 17:52:25 +0000 (18:52 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 5 Feb 2013 17:55:09 +0000 (18:55 +0100)
commit6cbbdbf3f363711b2264565763bf1b6c6a7af012
tree03530f18a913933df01ac4e5ff576b98ba845463
parent383085f6c0823069afd84411be28d5d5a3fe8e4e
BUG/MEDIUM: log: emit '-' for empty fields again

Commit 2b0108ad accidently got rid of the ability to emit a "-" for
empty log fields. This can happen for captured request and response
cookies, as well as for fetches. Since we don't want to have this done
for headers however, we set the default log method when parsing the
format. It is still possible to force the desired mode using +M/-M.
include/proto/log.h
src/cfgparse.c
src/log.c
src/proto_http.c