-
Notifications
You must be signed in to change notification settings - Fork 16
Closed
Description
In the following code the argument numItems is ignored. In contrast, in the function writeCallback immediately following, it is multiplied by size.
Lines 836 to 840 in e44a499
| static size_t readCallback(char* buffer, size_t size, size_t numItems, void* userData) { | |
| InternalResponse* res = (InternalResponse*)userData; | |
| InternalRequest* req = res->request; | |
| return req->options.bodyReader(buffer, size, req->options.bodyReaderData); | |
| } |
Fix: replace line 839 with
return req->options.bodyReader(buffer, size * numItems, req->options.bodyReaderData);
Metadata
Metadata
Assignees
Labels
No labels