summaryrefslogtreecommitdiffstats
path: root/src/protocol.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-04-06 21:55:15 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-04-06 21:55:15 +0100
commitdaf929a743ad48149a9f81f3d54900971954ad77 (patch)
tree0e282177f464e50cc413512ca17aa2c7cb384094 /src/protocol.c
parent4b86b2bbeeda5c4c56a0fb1b5add302835eca1b5 (diff)
downloadrspamd-daf929a743ad48149a9f81f3d54900971954ad77.tar.gz
rspamd-daf929a743ad48149a9f81f3d54900971954ad77.zip
Add compatibility output for rspamd 0.6 protocol.
Diffstat (limited to 'src/protocol.c')
-rw-r--r--src/protocol.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/protocol.c b/src/protocol.c
index a6e9f8d7d..65eb26b01 100644
--- a/src/protocol.c
+++ b/src/protocol.c
@@ -741,6 +741,10 @@ rspamd_protocol_write_reply (struct worker_task *task)
ucl_object_t *top = NULL;
msg = rspamd_http_new_message (HTTP_RESPONSE);
+ if (!task->is_json) {
+ /* Turn compatibility on */
+ msg->method = HTTP_SYMBOLS;
+ }
msg->date = time (NULL);
task->state = CLOSING_CONNECTION;