You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's a good idea, but sadly we don't know how many times the user is going to call write, so can't assume that aSize is the full content length.
The current implementation is a trade-off between ease of use and not having to parcel up all the the data you need to send so that it can be sent in one call to write. At present, for example, you could upload a file from an SD card, which is much bigger than the 2KB memory size of the (standard) Arduino. You wouldn't be able to do that if you had to send it all in one call as it wouldn't all fit into memory at once.
I think the write method (at HttpClient.h#L358) should send Content-Length setted to aSide before to finish the request.
The text was updated successfully, but these errors were encountered: