1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

CURLOPT_HEADERFUNCTION.3: fix typo

Refer to _HEADERDATA not _WRITEDATA.

Reported-by: Michał Piechowski
This commit is contained in:
Daniel Stenberg 2015-11-23 16:11:57 +01:00
parent 98acebb526
commit fc5d783589

View File

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