Merge pull request #1332 from bakercp/patch-1

Fixes #1331 - Poco::HTMLForm fails to set content length for HTTPMessage::HTTP_1_0 for ENCODING_MULTIPART
This commit is contained in:
Günter Obiltschnig 2016-07-30 10:03:21 +02:00 committed by GitHub
commit f1405ef07c

View File

@ -230,6 +230,10 @@ void HTMLForm::prepareSubmit(HTTPRequest& request)
{
request.setChunkedTransferEncoding(true);
}
if (!request.getChunkedTransferEncoding())
{
request.setContentLength(calculateContentLength());
}
}
else
{