mirror of
https://github.com/curl/curl.git
synced 2026-07-31 21:18:04 +03:00
curl: add %{header_json} support in -w handling
Outputs all response headers as a JSON object.
This commit is contained in:
parent
2d45137e1e
commit
4133a69f2d
6 changed files with 66 additions and 10 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue