diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-07-26 12:08:29 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-07-26 20:04:00 +0100 |
commit | 1acd5507db062251613f93ac927d96c1e2a011b3 (patch) | |
tree | c71996e2e7510be0be27825cefe707bdd795dc0e /src/controller.c | |
parent | c7b8c67fa172cf0e5f0a717b902735ce9102d938 (diff) | |
download | rspamd-1acd5507db062251613f93ac927d96c1e2a011b3.tar.gz rspamd-1acd5507db062251613f93ac927d96c1e2a011b3.zip |
[Minor] Allow empty body in the controller
Diffstat (limited to 'src/controller.c')
-rw-r--r-- | src/controller.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/controller.c b/src/controller.c index fb1d15efc..0b5e42381 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); |