Skip to content

Commit

Permalink
[Minor] Allow empty body in the controller
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Jul 26, 2020
1 parent c7b8c67 commit 1acd550
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/controller.c
Expand Up @@ -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);

Expand Down

0 comments on commit 1acd550

Please sign in to comment.