From 0747106d5b73fdedc1e4f6bd3a06d02e5440eac8 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 31 Jul 2015 15:53:07 +0100 Subject: [PATCH] Try to handle requests with no body. --- src/libutil/http.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libutil/http.c b/src/libutil/http.c index db7ea83fa..58f2378e5 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; -- 2.39.5