diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-06-07 14:55:01 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-06-07 14:55:01 +0100 |
commit | 6973dc14dfb11e54d198da676e6214f60bfb9cb7 (patch) | |
tree | 023da1c25f2a169b066bcef09fb329461e407084 | |
parent | e221e10c39e47a569a8e33ff79a53838e844c414 (diff) | |
download | rspamd-6973dc14dfb11e54d198da676e6214f60bfb9cb7.tar.gz rspamd-6973dc14dfb11e54d198da676e6214f60bfb9cb7.zip |
Do not add extra useless line for restfull output.
-rw-r--r-- | src/controller.c | 7 |
1 files changed, 6 insertions, 1 deletions
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; |