mirror of
https://github.com/curl/curl.git
synced 2026-08-06 07:16:14 +03:00
CURLOPT_HEADERFUNCTION.3: fix typo
Refer to _HEADERDATA not _WRITEDATA. Reported-by: Michał Piechowski
This commit is contained in:
parent
98acebb526
commit
fc5d783589
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue