diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-08-20 15:26:05 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-08-20 15:26:05 +0100 |
commit | 3386c4c30aec9767357f679c6b94656ab09517dd (patch) | |
tree | d5a0cc1d4c4861ff450f14b8e78ab10aa7e4e1a8 /src | |
parent | 3215a7365abdd8face0219c467a556e3224e5fd9 (diff) | |
download | rspamd-3386c4c30aec9767357f679c6b94656ab09517dd.tar.gz rspamd-3386c4c30aec9767357f679c6b94656ab09517dd.zip |
Do not call http body handler on end of message.
Diffstat (limited to 'src')
-rw-r--r-- | src/libutil/http.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/libutil/http.c b/src/libutil/http.c index 45eb0c62e..f245ca07c 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, |