From: Vsevolod Stakhov Date: Wed, 20 Aug 2014 14:26:05 +0000 (+0100) Subject: Do not call http body handler on end of message. X-Git-Tag: 0.7.0~127 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3386c4c30aec9767357f679c6b94656ab09517dd;p=thirdparty%2Frspamd.git Do not call http body handler on end of message. --- diff --git a/src/libutil/http.c b/src/libutil/http.c index 45eb0c62ef..f245ca07c1 100644 --- a/src/libutil/http.c +++ b/src/libutil/http.c @@ -524,10 +524,7 @@ rspamd_http_on_message_complete (http_parser * parser) if (conn->body_handler != NULL) { rspamd_http_connection_ref (conn); - if (conn->opts & RSPAMD_HTTP_BODY_PARTIAL) { - ret = conn->body_handler (conn, priv->msg, NULL, 0); - } - else { + if ((conn->opts & RSPAMD_HTTP_BODY_PARTIAL) == 0) { ret = conn->body_handler (conn, priv->msg, priv->msg->body->str,