diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-03-28 17:03:26 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-03-28 17:03:26 +0000 |
commit | c22cd245131fe9d59039d3d21029c205742156d9 (patch) | |
tree | 89e886dfa1a3ec88aa95f6bd55f5c5d59aa16a49 /src | |
parent | 1650f051c15f62c12ada20a041927428e00773af (diff) | |
download | rspamd-c22cd245131fe9d59039d3d21029c205742156d9.tar.gz rspamd-c22cd245131fe9d59039d3d21029c205742156d9.zip |
Calculate Content-Length properly.
Diffstat (limited to 'src')
-rw-r--r-- | src/webui.c | 2 |
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); } |