Net: fixed assert in MultipartStreamBuf constructor with empty boundaries (#1496)

This commit is contained in:
Vasil Mikulich
2017-07-06 01:28:04 +03:00
committed by Aleksandar Fabijanic
parent 3a2b9014b9
commit 558c7ff45f

View File

@@ -38,7 +38,7 @@ MultipartStreamBuf::MultipartStreamBuf(std::istream& istr, const std::string& bo
_boundary(boundary),
_lastPart(false)
{
poco_assert (!boundary.empty() && boundary.length() < STREAM_BUFFER_SIZE - 6);
poco_assert (boundary.length() < STREAM_BUFFER_SIZE - 6);
}