Commit 35d04c53 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Hanno Kranzhoff noticed we didn't properly reset the download/upload counters

before transfers, when doing multiple ones on the same handle.
parent b1becd0e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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)