* Multipart form content length calculation

* HTMLForm test
This commit is contained in:
Rangel Reale
2013-12-04 18:19:20 -02:00
parent 5edb90c48e
commit 0d2a839f79
12 changed files with 164 additions and 5 deletions

View File

@@ -41,6 +41,9 @@ namespace Poco {
namespace Net {
const int PartSource::UNKNOWN_CONTENT_LENGTH = -1;
PartSource::PartSource():
_mediaType("application/octet-stream")
{
@@ -69,5 +72,9 @@ const std::string& PartSource::filename() const
return EMPTY;
}
std::streamsize PartSource::getContentLength() const
{
return UNKNOWN_CONTENT_LENGTH;
}
} } // namespace Poco::Net