mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-29 12:18:01 +01:00
Merge pull request #344 from RangelReale/htmlformcontentlength
HTMLForm Content-Length calculation
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user