diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-07-05 14:26:41 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-07-05 14:26:41 +0100 |
commit | 578465e6b4242d3c9732b3865e88894d926e8871 (patch) | |
tree | ccdf0c926b82c7871314d00dc17e295360ab257b /src/libutil | |
parent | abc650b3df5a2ea02357ff579362f790ba27e851 (diff) | |
download | rspamd-578465e6b4242d3c9732b3865e88894d926e8871.tar.gz rspamd-578465e6b4242d3c9732b3865e88894d926e8871.zip |
[Fix] Fix writing of HTTP messages
Diffstat (limited to 'src/libutil')
-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 0ba8c8d2b..93e946ffc 100644 --- a/src/libutil/http.c +++ b/src/libutil/http.c @@ -1928,7 +1928,7 @@ rspamd_http_connection_write_message_common (struct rspamd_http_connection *conn peer_key = msg->peer_key; - priv->wr_total = bodylen + buf->len + 2; + priv->wr_total = bodylen + 2; hdrcount = 0; HASH_ITER (hh, msg->headers, hdr, htmp) { @@ -1947,6 +1947,7 @@ rspamd_http_connection_write_message_common (struct rspamd_http_connection *conn repbuf, sizeof (repbuf), bodylen, enclen, host, conn, msg, &buf, priv, peer_key); + priv->wr_total += buf->len; /* Setup external request body */ priv->out[0].iov_base = buf->str; |