mirror of
https://github.com/pocoproject/poco.git
synced 2025-03-04 19:13:30 +01:00
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:
commit
f1405ef07c
@ -230,6 +230,10 @@ void HTMLForm::prepareSubmit(HTTPRequest& request)
|
||||
{
|
||||
request.setChunkedTransferEncoding(true);
|
||||
}
|
||||
if (!request.getChunkedTransferEncoding())
|
||||
{
|
||||
request.setContentLength(calculateContentLength());
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user