]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: arg: fix error reporting for add-header/set-header sample fetch arguments
authorThierry FOURNIER <tfournier@exceliance.fr>
Wed, 20 Nov 2013 14:09:52 +0000 (15:09 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 28 Nov 2013 17:25:18 +0000 (18:25 +0100)
commit1c0054fe83c19eaab8b37ce57d033aa5c4b75c04
treeb8aa747a0a3deacd88d54307edff98acc795d432
parent4a04dc368dea3c2c2be2b30bdd6e7a8de4788f04
BUG/MINOR: arg: fix error reporting for add-header/set-header sample fetch arguments

The 'add-header %[samples]' parsing errors associated to http-request
and http-response are displayed with the wrong keyword.

Configuration entry:

   http-request set-header mon-header %[res.hdr(user-agent)]

Original error message:

   [WARNING] 323/150920 (16559) : parsing [haproxy.conf:36] : 'log-format' : sample fetch <res.hdr ...

After commit error message:

   [WARNING] 323/150929 (16580) : parsing [haproxy.conf:36] : 'http-request' : sample fetch <res.hdr ...
include/types/arg.h
src/log.c
src/proto_http.c
src/sample.c