From 40c27e299f97e36c4c2ecc697397f5626737513b Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 22 Sep 2011 22:34:54 +0200 Subject: 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 --- lib/progress.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3