diff options
author | Daniel Stenberg <daniel@haxx.se> | 2021-06-07 13:16:07 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-06-07 23:54:48 +0200 |
commit | 32311d2d15a8aabe520a93fafa932268678742af (patch) | |
tree | fdad6b1bf2699a1cbd2e2bf4a193a785ee95371a /lib/c-hyper.c | |
parent | 7de85d271ae6fa77c9db8ee7521afedf134e9234 (diff) | |
download | curl-32311d2d15a8aabe520a93fafa932268678742af.tar.gz |
c-hyper: support CURLINFO_STARTTRANSFER_TIME
Closes #7204
Diffstat (limited to 'lib/c-hyper.c')
-rw-r--r-- | lib/c-hyper.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/c-hyper.c b/lib/c-hyper.c index 73428c641..117912815 100644 --- a/lib/c-hyper.c +++ b/lib/c-hyper.c @@ -125,6 +125,10 @@ static int hyper_each_header(void *userdata, char *headp; CURLcode result; int writetype; + + if(!data->req.bytecount) + Curl_pgrsTime(data, TIMER_STARTTRANSFER); + Curl_dyn_reset(&data->state.headerb); if(name_len) { if(Curl_dyn_addf(&data->state.headerb, "%.*s: %.*s\r\n", |