aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/sepheaders.c
diff options
context:
space:
mode:
Diffstat (limited to 'docs/examples/sepheaders.c')
-rw-r--r--docs/examples/sepheaders.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/examples/sepheaders.c b/docs/examples/sepheaders.c
index d944ab99d..63ea99391 100644
--- a/docs/examples/sepheaders.c
+++ b/docs/examples/sepheaders.c
@@ -66,7 +66,7 @@ int main(void)
}
/* we want the headers be written to this file handle */
- curl_easy_setopt(curl_handle, CURLOPT_WRITEHEADER, headerfile);
+ curl_easy_setopt(curl_handle, CURLOPT_HEADERDATA, headerfile);
/* we want the body be written to this file handle instead of stdout */
curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, bodyfile);