diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-04-30 15:39:36 -0700 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-04-30 15:39:36 -0700 |
commit | 1d5515412fa359e98e9a92350004abffda183909 (patch) | |
tree | 6b267224e3a05999aeb5c87cf43b553dd44c1ea2 /src/libserver/worker_util.c | |
parent | 2b99cf9650d90ef852a01b082578a74d1c20065f (diff) | |
download | rspamd-1d5515412fa359e98e9a92350004abffda183909.tar.gz rspamd-1d5515412fa359e98e9a92350004abffda183909.zip |
Write custom status in HTTP reply.
Diffstat (limited to 'src/libserver/worker_util.c')
-rw-r--r-- | src/libserver/worker_util.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libserver/worker_util.c b/src/libserver/worker_util.c index 173415c4b..74a83cb70 100644 --- a/src/libserver/worker_util.c +++ b/src/libserver/worker_util.c @@ -227,6 +227,7 @@ rspamd_controller_send_error (struct rspamd_http_connection_entry *entry, msg->date = time (NULL); msg->code = code; msg->body = g_string_sized_new (128); + msg->status = g_string_new (error_msg); rspamd_printf_gstring (msg->body, "{\"error\":\"%s\"}", error_msg); rspamd_http_connection_reset (entry->conn); rspamd_http_connection_write_message (entry->conn, msg, NULL, |