aboutsummaryrefslogtreecommitdiffstats
path: root/src/controller.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2013-06-07 14:55:01 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2013-06-07 14:55:01 +0100
commit6973dc14dfb11e54d198da676e6214f60bfb9cb7 (patch)
tree023da1c25f2a169b066bcef09fb329461e407084 /src/controller.c
parente221e10c39e47a569a8e33ff79a53838e844c414 (diff)
downloadrspamd-6973dc14dfb11e54d198da676e6214f60bfb9cb7.tar.gz
rspamd-6973dc14dfb11e54d198da676e6214f60bfb9cb7.zip
Do not add extra useless line for restfull output.
Diffstat (limited to 'src/controller.c')
-rw-r--r--src/controller.c7
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;