1
0
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:
Daniel Stenberg 2002-05-02 08:52:09 +00:00
parent b1becd0ed5
commit 35d04c5398

View File

@ -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)