aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2013-03-28 17:03:26 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2013-03-28 17:03:26 +0000
commitc22cd245131fe9d59039d3d21029c205742156d9 (patch)
tree89e886dfa1a3ec88aa95f6bd55f5c5d59aa16a49 /src
parent1650f051c15f62c12ada20a041927428e00773af (diff)
downloadrspamd-c22cd245131fe9d59039d3d21029c205742156d9.tar.gz
rspamd-c22cd245131fe9d59039d3d21029c205742156d9.zip
Calculate Content-Length properly.
Diffstat (limited to 'src')
-rw-r--r--src/webui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/webui.c b/src/webui.c
index c3788f925..17762743c 100644
--- a/src/webui.c
+++ b/src/webui.c
@@ -255,7 +255,7 @@ http_calculate_content_length (struct evbuffer *evb, struct evhttp_request *req)
#if _EVENT_NUMERIC_VERSION > 0x02000000
rspamd_snprintf (numbuf, sizeof (numbuf), "%z", evbuffer_get_length (evb));
#else
- rspamd_snprintf (numbuf, sizeof (numbuf), "%z", evb->totallen);
+ rspamd_snprintf (numbuf, sizeof (numbuf), "%z", EVBUFFER_LENGTH (evb));
#endif
evhttp_add_header(req->output_headers, "Content-Length", numbuf);
}