diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-04-05 17:20:42 -0700 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-04-05 17:20:42 -0700 |
commit | 4b86b2bbeeda5c4c56a0fb1b5add302835eca1b5 (patch) | |
tree | f5fe022434069e3f3ab0fce43ee2a9be6751b92f /src | |
parent | 90feb3d402c0aae52b37c0b05ed8ba77ec0ef5c9 (diff) | |
download | rspamd-4b86b2bbeeda5c4c56a0fb1b5add302835eca1b5.tar.gz rspamd-4b86b2bbeeda5c4c56a0fb1b5add302835eca1b5.zip |
Use is_json for compatibility output.
Diffstat (limited to 'src')
-rw-r--r-- | src/protocol.c | 3 | ||||
-rw-r--r-- | src/worker.c | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/protocol.c b/src/protocol.c index ca23fa0fd..a6e9f8d7d 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 cb5d6a140..36d441d07 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++; |