From fc5d783589268b7ee66a80173c48e940015b1787 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 23 Nov 2015 16:11:57 +0100 Subject: [PATCH] CURLOPT_HEADERFUNCTION.3: fix typo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refer to _HEADERDATA not _WRITEDATA. Reported-by: MichaƂ Piechowski --- docs/libcurl/opts/CURLOPT_HEADERFUNCTION.3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/libcurl/opts/CURLOPT_HEADERFUNCTION.3 b/docs/libcurl/opts/CURLOPT_HEADERFUNCTION.3 index f8ed0ab8a..7cebb0174 100644 --- a/docs/libcurl/opts/CURLOPT_HEADERFUNCTION.3 +++ b/docs/libcurl/opts/CURLOPT_HEADERFUNCTION.3 @@ -85,7 +85,7 @@ static size_t header_callback(char *buffer, size_t size, size_t nitems, void *userdata) { /* received header is nitems * size long in 'buffer' NOT ZERO TERMINATED */ - /* 'userdata' is set with CURLOPT_WRITEDATA */ + /* 'userdata' is set with CURLOPT_HEADERDATA */ return nitems * size; }