mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-30 13:47:10 +01:00
* Multipart form content length calculation
* HTMLForm test
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user