aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-07-08 16:51:44 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-07-08 16:51:44 +0100
commit0d881e8bee2374cfb477fc17ae223204b9516015 (patch)
tree0da47e626c49ba458ecf41022188869537c51383
parentbad794eba235a0c21ac7a6897e575ae5042944cc (diff)
downloadrspamd-0d881e8bee2374cfb477fc17ae223204b9516015.tar.gz
rspamd-0d881e8bee2374cfb477fc17ae223204b9516015.zip
Fix HTTP error code on learn failures.
-rw-r--r--src/controller.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/controller.c b/src/controller.c
index 456de2928..aa45f5c91 100644
--- a/src/controller.c
+++ b/src/controller.c
@@ -923,7 +923,7 @@ rspamd_controller_learn_fin_task (void *ud)
if (rspamd_learn_task_spam (session->cl, task, session->is_spam, &err) ==
RSPAMD_STAT_PROCESS_ERROR) {
msg_info ("cannot learn <%s>: %e", task->message_id, err);
- rspamd_controller_send_error (conn_ent, 500 + err->code, err->message);
+ rspamd_controller_send_error (conn_ent, err->code, err->message);
return TRUE;
}