* HTTP.cpp : rename method

This commit is contained in:
hagen 2016-06-28 13:00:00 +00:00
parent 8cb3e3418a
commit 2d252e6459
4 changed files with 4 additions and 4 deletions

View file

@ -205,7 +205,7 @@ namespace client
}
/* append to json chunk of data from 1st request */
json.write(buf->begin() + len, bytes_transferred - len);
remains = req.length() - len;
remains = req.content_length() - len;
/* if request has Content-Length header, fetch rest of data and store to json buffer */
while (remains > 0) {
len = ((long int) buf->size() < remains) ? buf->size() : remains;