mirror of
https://github.com/curl/curl.git
synced 2026-07-23 17:27:22 +03: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue