1
0

Fixed MultiPartParser's boundary parsing.

This commit is contained in:
madmaxoft 2013-10-04 13:02:56 +02:00
parent d8229a5531
commit 9a33732f6a
2 changed files with 2 additions and 1 deletions

View File

@ -116,6 +116,7 @@ cMultipartParser::cMultipartParser(const AString & a_ContentType, cCallbacks & a
// Find the multipart boundary: // Find the multipart boundary:
ContentType.erase(0, idxSC + 1); ContentType.erase(0, idxSC + 1);
cNameValueParser CTParser(ContentType.c_str(), ContentType.size()); cNameValueParser CTParser(ContentType.c_str(), ContentType.size());
CTParser.Finish();
if (!CTParser.IsValid()) if (!CTParser.IsValid())
{ {
m_IsValid = false; m_IsValid = false;

View File

@ -20,7 +20,7 @@ public:
/// Creates an empty parser /// Creates an empty parser
cNameValueParser(bool a_AllowsKeyOnly = true); cNameValueParser(bool a_AllowsKeyOnly = true);
/// Creates an empty parser, then parses the data given /// Creates an empty parser, then parses the data given. Doesn't call Finish(), so more data can be parsed later
cNameValueParser(const char * a_Data, int a_Size, bool a_AllowsKeyOnly = true); cNameValueParser(const char * a_Data, int a_Size, bool a_AllowsKeyOnly = true);
/// Parses the data given /// Parses the data given