]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
CURLOPT_READFUNCTION.3: the callback 'size' arg is always 1
authorDaniel Stenberg <daniel@haxx.se>
Sat, 28 Jan 2023 22:40:59 +0000 (23:40 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 29 Jan 2023 09:28:17 +0000 (10:28 +0100)
Reported-by: Brian Green
Fixes #10328
Closes #10355

docs/libcurl/opts/CURLOPT_READFUNCTION.3

index 964a43e33e7c6cf0895d1a625d059e2ad9cdc862..ee20e8b1eb73801ef37fea0897649a8c6278bcf4 100644 (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.