]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
c-hyper: support CURLINFO_STARTTRANSFER_TIME
authorDaniel Stenberg <daniel@haxx.se>
Mon, 7 Jun 2021 11:16:07 +0000 (13:16 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 7 Jun 2021 21:54:48 +0000 (23:54 +0200)
Closes #7204

lib/c-hyper.c

index 73428c64142decc97c880712da2f0c904deafb86..117912815a5e9287ad19f5c47ece3d27d4c6f428 100644 (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",