mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
mime: do not reuse previously computed multipart size
The contents might have changed: size must be recomputed. Reported-by: moteus on github Fixes #1999
This commit is contained in:
parent
aeaa22de8e
commit
cea27d3454
@ -1523,7 +1523,7 @@ curl_off_t Curl_mime_size(curl_mimepart *part)
|
||||
{
|
||||
curl_off_t size;
|
||||
|
||||
if(part->datasize < 0 && part->kind == MIMEKIND_MULTIPART)
|
||||
if(part->kind == MIMEKIND_MULTIPART)
|
||||
part->datasize = multipart_size(part->arg);
|
||||
|
||||
size = part->datasize;
|
||||
|
Loading…
Reference in New Issue
Block a user