From: Vsevolod Stakhov Date: Sun, 26 Jul 2020 11:08:29 +0000 (+0100) Subject: [Minor] Allow empty body in the controller X-Git-Tag: 2.6~213 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1acd5507db062251613f93ac927d96c1e2a011b3;p=thirdparty%2Frspamd.git [Minor] Allow empty body in the controller --- diff --git a/src/controller.c b/src/controller.c index fb1d15efcb..0b5e423818 100644 --- a/src/controller.c +++ b/src/controller.c @@ -2090,14 +2090,6 @@ rspamd_controller_handle_scan (struct rspamd_http_connection_entry *conn_ent, return 0; } - if (rspamd_http_message_get_body (msg, NULL) == NULL) { - msg_err_session ("got zero length body, cannot continue"); - rspamd_controller_send_error (conn_ent, - 400, - "Empty body is not permitted"); - return 0; - } - task = rspamd_task_new (session->ctx->worker, session->cfg, session->pool, ctx->lang_det, ctx->event_loop, FALSE);