]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Try to handle requests with no body.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 31 Jul 2015 14:53:07 +0000 (15:53 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 31 Jul 2015 14:53:07 +0000 (15:53 +0100)
src/libutil/http.c

index db7ea83fa5af3022bf92128bc31c438e38bfba8c..58f2378e5057b0c8cfc8bcefe1b90f307272627b 100644 (file)
@@ -1592,7 +1592,8 @@ rspamd_http_connection_write_message (struct rspamd_http_connection *conn,
                        /* No CRLF for compatibility reply */
                        priv->wr_total -= 2;
                }
-               if (msg->body != NULL) {
+
+               if (pbody != NULL) {
 
                        if (msg->body_buf.str == NULL && msg->body_buf.len == 0) {
                                msg->body_buf.str = msg->body->str;