From: Daniel Stenberg Date: Thu, 22 Sep 2011 20:34:54 +0000 (+0200) Subject: Curl_pgrsStartNow: keep HEADERS_OUT set X-Git-Tag: curl-7_23_0~161 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=40c27e299f97e36c4c2ecc697397f5626737513b;p=curl Curl_pgrsStartNow: keep HEADERS_OUT set To avoid that the progress meter headers get output between each transfer, make sure the bits gets kept when (re-)inited. Reported by: Christopher Stone --- diff --git a/lib/progress.c b/lib/progress.c index 8966854fa..1514e1edd 100644 --- a/lib/progress.c +++ b/lib/progress.c @@ -201,7 +201,8 @@ void Curl_pgrsStartNow(struct SessionHandle *data) { data->progress.speeder_c = 0; /* reset the progress meter display */ data->progress.start = Curl_tvnow(); - data->progress.flags &= PGRS_HIDE; /* clear all bits except HIDE */ + /* clear all bits except HIDE and HEADERS_OUT */ + data->progress.flags &= PGRS_HIDE|PGRS_HEADERS_OUT; } void Curl_pgrsSetDownloadCounter(struct SessionHandle *data, curl_off_t size)