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:
Juan Cruz Viotti 2023-07-07 22:16:18 -04:00 committed by Daniel Stenberg
parent 356208c16f
commit 2e0bad3f18
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

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