mirror of
https://github.com/curl/curl.git
synced 2024-12-09 06:30:06 +08:00
curl_easy_nextheader.3: add missing open parenthesis examples
Closes #11409 Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
This commit is contained in:
parent
356208c16f
commit
2e0bad3f18
@ -73,14 +73,14 @@ struct curl_header *h;
|
||||
|
||||
/* extract the normal headers from the first request */
|
||||
while((h = curl_easy_nextheader(easy, CURLH_HEADER, 0, prev))) {
|
||||
print "%s: %s\\n", h->name, h->value);
|
||||
printf("%s: %s\\n", h->name, h->value);
|
||||
prev = h;
|
||||
}
|
||||
|
||||
/* extract the normal headers + 1xx + trailers from the last request */
|
||||
unsigned int origin = CURLH_HEADER| CURLH_1XX | CURLH_TRAILER;
|
||||
while((h = curl_easy_nextheader(easy, origin, -1, prev))) {
|
||||
print "%s: %s\\n", h->name, h->value);
|
||||
printf("%s: %s\\n", h->name, h->value);
|
||||
prev = h;
|
||||
}
|
||||
.fi
|
||||
|
Loading…
Reference in New Issue
Block a user