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/protocol.c | |
parent | 90feb3d402c0aae52b37c0b05ed8ba77ec0ef5c9 (diff) | |
download | rspamd-4b86b2bbeeda5c4c56a0fb1b5add302835eca1b5.tar.gz rspamd-4b86b2bbeeda5c4c56a0fb1b5add302835eca1b5.zip |
Use is_json for compatibility output.
Diffstat (limited to 'src/protocol.c')
-rw-r--r-- | src/protocol.c | 3 |
1 files changed, 3 insertions, 0 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); } |