From: Vsevolod Stakhov Date: Sun, 6 Apr 2014 00:20:42 +0000 (-0700) Subject: Use is_json for compatibility output. X-Git-Tag: 0.7.0~330 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b86b2bbeeda5c4c56a0fb1b5add302835eca1b5;p=thirdparty%2Frspamd.git Use is_json for compatibility output. --- diff --git a/src/protocol.c b/src/protocol.c index ca23fa0fd2..a6e9f8d7dc 100644 --- a/src/protocol.c +++ b/src/protocol.c @@ -419,11 +419,14 @@ rspamd_protocol_handle_request (struct worker_task *task, if (msg->method == HTTP_SYMBOLS) { task->cmd = CMD_SYMBOLS; + task->is_json = FALSE; } else if (msg->method == HTTP_CHECK) { task->cmd = CMD_CHECK; + task->is_json = FALSE; } else { + task->is_json = TRUE; ret = rspamd_protocol_handle_url (task, msg); } diff --git a/src/worker.c b/src/worker.c index cb5d6a140b..36d441d075 100644 --- a/src/worker.c +++ b/src/worker.c @@ -344,7 +344,6 @@ accept_socket (gint fd, short what, void *arg) /* Copy some variables */ new_task->sock = nfd; new_task->is_mime = ctx->is_mime; - new_task->is_json = ctx->is_json; new_task->allow_learn = ctx->allow_learn; worker->srv->stat->connections_count++;