aboutsummaryrefslogtreecommitdiff
path: root/lib/transfer.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/transfer.c')
-rw-r--r--lib/transfer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/transfer.c b/lib/transfer.c
index f276dc0f8..de1e18640 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -869,6 +869,10 @@ CURLcode Curl_readwrite(struct connectdata *conn,
if(contentlength >= 0) {
k->size = contentlength;
k->maxdownload = k->size;
+ /* we set the progress download size already at this point
+ just to make it easier for apps/callbacks to extract this
+ info as soon as possible */
+ Curl_pgrsSetDownloadSize(data, k->size);
}
else {
/* Negative Content-Length is really odd, and we know it