aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--protocols/http_client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/http_client.c b/protocols/http_client.c
index 49e6dd83..ead6eb09 100644
--- a/protocols/http_client.c
+++ b/protocols/http_client.c
@@ -268,7 +268,7 @@ got_reply:
else
req->reply_body = end1 + 2;
- req->body_size = req->reply_headers + bytes_read - req->reply_body;
+ req->body_size = req->reply_headers + req->bytes_read - req->reply_body;
if( ( end1 = strchr( req->reply_headers, ' ' ) ) != NULL )
{