From: Vsevolod Stakhov Date: Fri, 7 Jun 2013 13:55:01 +0000 (+0100) Subject: Do not add extra useless line for restfull output. X-Git-Tag: 0.5.6~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6973dc14dfb11e54d198da676e6214f60bfb9cb7;p=thirdparty%2Frspamd.git Do not add extra useless line for restfull output. --- diff --git a/src/controller.c b/src/controller.c index 865f8f1de7..45c0264255 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;