]> source.dussan.org Git - rspamd.git/commitdiff
Set status for HTTP replies
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 16 Jan 2016 22:45:15 +0000 (22:45 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 16 Jan 2016 22:45:15 +0000 (22:45 +0000)
src/libserver/protocol.c

index e3f39899c203c746d39c7f05edf30565dfc29a36..33c84c7abd2722287fb2ca908d6025a609c1a449 100644 (file)
@@ -1118,6 +1118,8 @@ rspamd_protocol_write_reply (struct rspamd_task *task)
                ucl_object_unref (top);
        }
        else {
+               msg->status = rspamd_fstring_new_init ("OK", 2);
+
                switch (task->cmd) {
                case CMD_REPORT_IFSPAM:
                case CMD_REPORT: