aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/cacertinmem.c
diff options
context:
space:
mode:
Diffstat (limited to 'docs/examples/cacertinmem.c')
-rw-r--r--docs/examples/cacertinmem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/examples/cacertinmem.c b/docs/examples/cacertinmem.c
index b660c0d87..30a5153a8 100644
--- a/docs/examples/cacertinmem.c
+++ b/docs/examples/cacertinmem.c
@@ -125,7 +125,7 @@ int main(void)
rv=curl_easy_setopt(ch,CURLOPT_WRITEFUNCTION, *writefunction);
rv=curl_easy_setopt(ch,CURLOPT_WRITEDATA, stdout);
rv=curl_easy_setopt(ch,CURLOPT_HEADERFUNCTION, *writefunction);
- rv=curl_easy_setopt(ch,CURLOPT_WRITEHEADER, stderr);
+ rv=curl_easy_setopt(ch,CURLOPT_HEADERDATA, stderr);
rv=curl_easy_setopt(ch,CURLOPT_SSLCERTTYPE,"PEM");
rv=curl_easy_setopt(ch,CURLOPT_SSL_VERIFYPEER,1L);
rv=curl_easy_setopt(ch, CURLOPT_URL, "https://www.example.com/");