diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-07-31 15:53:07 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-07-31 15:53:07 +0100 |
commit | 0747106d5b73fdedc1e4f6bd3a06d02e5440eac8 (patch) | |
tree | 3a5f2332463846480f7a8fcd964147ee72ab7592 /src/libutil/http.c | |
parent | 627e54de47805de8e6ae6cb1b62eb308fee2ea3a (diff) | |
download | rspamd-0747106d5b73fdedc1e4f6bd3a06d02e5440eac8.tar.gz rspamd-0747106d5b73fdedc1e4f6bd3a06d02e5440eac8.zip |
Try to handle requests with no body.
Diffstat (limited to 'src/libutil/http.c')
-rw-r--r-- | src/libutil/http.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |