mirror of
https://github.com/curl/curl.git
synced 2026-06-03 19:04:15 +03: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
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue