From 6973dc14dfb11e54d198da676e6214f60bfb9cb7 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 7 Jun 2013 14:55:01 +0100 Subject: [PATCH] Do not add extra useless line for restfull output. --- src/controller.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/controller.c b/src/controller.c index 865f8f1de..45c026425 100644 --- a/src/controller.c +++ b/src/controller.c @@ -433,7 +433,12 @@ process_counters_command (struct controller_session *session) cache = session->cfg->cache; - r = rspamd_snprintf (out_buf, sizeof (out_buf), "Rspamd counters." CRLF); + if (!session->restful) { + r = rspamd_snprintf (out_buf, sizeof (out_buf), "Rspamd counters." CRLF); + } + else { + r = 0; + } if (cache != NULL) { cur = cache->negative_items; -- 2.39.5