diff --git a/lib/c-hyper.c b/lib/c-hyper.c index f0f49ce6c2..05080fa9ac 100644 --- a/lib/c-hyper.c +++ b/lib/c-hyper.c @@ -771,7 +771,7 @@ static int uploadstreamed(void *userdata, hyper_context *ctx, /* increasing the writebytecount here is a little premature but we don't know exactly when the body is sent */ data->req.writebytecount += fillcount; - Curl_pgrsSetUploadCounter(data, fillcount); + Curl_pgrsSetUploadCounter(data, data->req.writebytecount); } return HYPER_POLL_READY; }