aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2011-09-22 22:34:54 +0200
committerDaniel Stenberg <daniel@haxx.se>2011-09-22 22:41:06 +0200
commit40c27e299f97e36c4c2ecc697397f5626737513b (patch)
tree6f72272e477e6f8eee7c92655e10c6e5c64356b4 /lib
parentfa775b56de77723a276d3efa622b01b961d8e9be (diff)
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
Diffstat (limited to 'lib')
-rw-r--r--lib/progress.c3
1 files changed, 2 insertions, 1 deletions
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)