From 4b86b2bbeeda5c4c56a0fb1b5add302835eca1b5 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 5 Apr 2014 17:20:42 -0700 Subject: Use is_json for compatibility output. --- src/protocol.c | 3 +++ src/worker.c | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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++; -- cgit v1.2.3