diff options
Diffstat (limited to 'src/protocol.c')
-rw-r--r-- | src/protocol.c | 4 |
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; |