Merge pull request #344 from RangelReale/htmlformcontentlength

HTMLForm Content-Length calculation
This commit is contained in:
Aleksandar Fabijanic
2014-05-21 22:27:12 -05:00
12 changed files with 164 additions and 5 deletions

View File

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