]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: cli/stats: add missing trailing LF after JSON outputs
authorWilly Tarreau <w@1wt.eu>
Fri, 10 Jun 2022 07:21:22 +0000 (09:21 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 10 Jun 2022 07:23:44 +0000 (09:23 +0200)
commit5a0e7ca5d058f71b72ff296cd51f15eaddb3ad60
treed348386a3fa3ae84f5274da2e016c785ec89c3cb
parent3a2fcfd58dc180d6dcc3c6b21026aee595582a5d
BUG/MINOR: cli/stats: add missing trailing LF after JSON outputs

Patrick Hemmer reported that we have a bug in the CLI commands
"show stat json" and "show schema json" in that they forget the trailing
LF that's required to mark the end of the response. This has been the
case since the introduction of the feature in 1.8-dev1 by commit 6f6bb380e
("MEDIUM: stats: Add show json schema"), so this fix may be backported to
all versions.
src/stats.c