From daf929a743ad48149a9f81f3d54900971954ad77 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sun, 6 Apr 2014 21:55:15 +0100 Subject: Add compatibility output for rspamd 0.6 protocol. --- src/protocol.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/protocol.c') 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; -- cgit v1.2.3