mirror of
https://github.com/moparisthebest/curl
synced 2025-03-11 07:39:50 -04:00
Hanno Kranzhoff noticed we didn't properly reset the download/upload counters
before transfers, when doing multiple ones on the same handle.
This commit is contained in:
parent
b1becd0ed5
commit
35d04c5398
@ -913,6 +913,9 @@ CURLcode Curl_readwrite_init(struct connectdata *conn)
|
||||
Curl_pgrsTime(data, TIMER_PRETRANSFER);
|
||||
Curl_speedinit(data);
|
||||
|
||||
Curl_pgrsSetUploadCounter(data, 0);
|
||||
Curl_pgrsSetDownloadCounter(data, 0);
|
||||
|
||||
if (!conn->getheader) {
|
||||
k->header = FALSE;
|
||||
if(conn->size > 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user