about summary refs log tree commit diff
path: root/net
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2019-02-27T13·02+0100
committerVincent Ambo <github@tazj.in>2019-02-27T13·39+0100
commit67bfba446d42e047796c79046920caa5cdcd90f0 (patch)
tree0084c0e2372e752da9f4d96725c5fb201acd0110 /net
parenta18dfc5a5e7380800b8dd3314a14a72cf2269340 (diff)
fix(lib): Support large body uploads with repeated read callbacks
When uploading larger amounts of data, cURL will call the read
callback incrementally multiple times to receive all the expected
data.

Previously if the size of the data to upload exceeded the size of the
initial buffer provided by cURL, the write (and thus the request)
would fail.

This changes the logic to write the data in chunks of a size that are
acceptable to cURL.
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions