]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: config: correctly report when log-format headers require HTTP mode
authorWilly Tarreau <w@1wt.eu>
Wed, 29 Jan 2014 13:39:58 +0000 (14:39 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 29 Jan 2014 13:39:58 +0000 (14:39 +0100)
commit59ad1a2e7584669d591ccd290fd027e8c190ebe4
treef3fd587f0ff23df3cbbafbef617533ba072166f8
parent4efb353e470675da8a65cc24c8918e68c05ab9d4
BUG/MINOR: config: correctly report when log-format headers require HTTP mode

When using some log-format directives in header insertion without HTTP mode,
the config parser used to report a cryptic message about option httplog being
downgraded to tcplog and with "(null):0" as the file name and line number.

This is because the lfs_file and lfs_line were not properly set for some valid
use cases of log-format directives. Now we cover http-request and http-response
as well.
src/proto_http.c
src/proxy.c