Fixed MultiPartParser's boundary parsing.
This commit is contained in:
parent
d8229a5531
commit
9a33732f6a
@ -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;
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user