mirror of
https://github.com/pocoproject/poco.git
synced 2025-04-01 17:25:03 +02:00
fixed GH #2686: Uploads larger than 2GB fail
This commit is contained in:
parent
ba0acff719
commit
35d73695f8
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user