From: Vsevolod Stakhov Date: Fri, 31 Jul 2015 14:53:07 +0000 (+0100) Subject: Try to handle requests with no body. X-Git-Tag: 1.0.0~247 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0747106d5b73fdedc1e4f6bd3a06d02e5440eac8;p=thirdparty%2Frspamd.git Try to handle requests with no body. --- diff --git a/src/libutil/http.c b/src/libutil/http.c index db7ea83fa5..58f2378e50 100644 --- a/src/libutil/http.c +++ b/src/libutil/http.c @@ -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;