]> source.dussan.org Git - rspamd.git/commitdiff
Do not call http body handler on end of message.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 20 Aug 2014 14:26:05 +0000 (15:26 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 20 Aug 2014 14:26:05 +0000 (15:26 +0100)
src/libutil/http.c

index 45eb0c62ef67f44ce1a1a013343145fde25cd9bd..f245ca07c1097f654c2f696f8a4c00000162e439 100644 (file)
@@ -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,