CURLOPT_READFUNCTION.3: the callback 'size' arg is always 1

Reported-by: Brian Green
Fixes #10328
Closes #10355
This commit is contained in:
Daniel Stenberg 2023-01-28 23:40:59 +01:00
parent 0e293bacb1
commit ee51f5847a
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -40,7 +40,7 @@ This callback function gets called by libcurl as soon as it needs to read data
in order to send it to the peer - like if you ask it to upload or post data to
the server. The data area pointed at by the pointer \fIbuffer\fP should be
filled up with at most \fIsize\fP multiplied with \fInitems\fP number of bytes
by your function.
by your function. \fIsize\fP is always 1.
Set the \fIuserdata\fP argument with the \fICURLOPT_READDATA(3)\fP option.