summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--source/HTTPServer/MultipartParser.cpp1
-rw-r--r--source/HTTPServer/NameValueParser.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/source/HTTPServer/MultipartParser.cpp b/source/HTTPServer/MultipartParser.cpp
index 7df151dc3..b49f6ec07 100644
--- a/source/HTTPServer/MultipartParser.cpp
+++ b/source/HTTPServer/MultipartParser.cpp
@@ -116,6 +116,7 @@ cMultipartParser::cMultipartParser(const AString & a_ContentType, cCallbacks & a
// Find the multipart boundary:
ContentType.erase(0, idxSC + 1);
cNameValueParser CTParser(ContentType.c_str(), ContentType.size());
+ CTParser.Finish();
if (!CTParser.IsValid())
{
m_IsValid = false;
diff --git a/source/HTTPServer/NameValueParser.h b/source/HTTPServer/NameValueParser.h
index 111cb6052..07dc0b942 100644
--- a/source/HTTPServer/NameValueParser.h
+++ b/source/HTTPServer/NameValueParser.h
@@ -20,7 +20,7 @@ public:
/// Creates an empty parser
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);
/// Parses the data given