diff --git a/src/stats.c b/src/stats.c index dc9b040ff..f9a520a86 100644 --- a/src/stats.c +++ b/src/stats.c @@ -3667,7 +3667,7 @@ static void stats_dump_json_header() */ static void stats_dump_json_end() { - chunk_strcat(&trash, "]"); + chunk_strcat(&trash, "]\n"); } /* Uses as a pointer to the current proxy and as @@ -4779,6 +4779,7 @@ static void stats_dump_json_schema(struct buffer *out) chunk_appendf(out, "{\"errorStr\":\"output buffer too short\"}"); } + chunk_appendf(out, "\n"); } /* This function dumps the schema onto the stream connector's read buffer.