summaryrefslogtreecommitdiffstats
path: root/src/net
diff options
context:
space:
mode:
Diffstat (limited to 'src/net')
-rw-r--r--src/net/tcp/http.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/net/tcp/http.c b/src/net/tcp/http.c
index 329324458..18030fe60 100644
--- a/src/net/tcp/http.c
+++ b/src/net/tcp/http.c
@@ -253,6 +253,10 @@ static void http_rx_data ( struct http_request *http,
return;
}
+ /* Update progress */
+ http->async.completed = http->buffer->fill;
+ http->async.total = http->content_length;
+
/* If we have reached the content-length, stop now */
if ( http->content_length &&
( http->buffer->fill >= http->content_length ) ) {