c-hyper: support CURLINFO_STARTTRANSFER_TIME

Closes #7204
This commit is contained in:
Daniel Stenberg 2021-06-07 13:16:07 +02:00
parent 7de85d271a
commit 32311d2d15
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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",