aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-08-20 15:26:05 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-08-20 15:26:05 +0100
commit3386c4c30aec9767357f679c6b94656ab09517dd (patch)
treed5a0cc1d4c4861ff450f14b8e78ab10aa7e4e1a8 /src
parent3215a7365abdd8face0219c467a556e3224e5fd9 (diff)
downloadrspamd-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.c5
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,