curl: add %{header_json} support in -w handling

Outputs all response headers as a JSON object.
This commit is contained in:
Daniel Stenberg 2022-03-17 17:55:06 +01:00
parent 2d45137e1e
commit 4133a69f2d
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
6 changed files with 66 additions and 10 deletions

View file

@ -155,7 +155,8 @@ struct curl_header *curl_easy_nextheader(CURL *easy,
hs = pick->ptr;
if((hs->type & type) && (hs->request == request))
break;
} while((pick = pick->next));
pick = pick->next;
} while(pick);
}
if(!pick)