mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-poco.git
synced 2025-11-07 14:08:45 +00:00
fixed GH #2686: Uploads larger than 2GB fail
This commit is contained in:
@@ -435,7 +435,7 @@ void HTMLForm::writeMultipart(std::ostream& ostr)
|
||||
// count only, don't move stream position
|
||||
std::streamsize partlen = part.pSource->getContentLength();
|
||||
if (partlen != PartSource::UNKNOWN_CONTENT_LENGTH)
|
||||
pCountingOutputStream->addChars(static_cast<int>(partlen));
|
||||
pCountingOutputStream->addChars(partlen);
|
||||
else
|
||||
pCountingOutputStream->setValid(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user