summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-10-04 13:02:56 +0200
committermadmaxoft <github@xoft.cz>2013-10-04 13:10:30 +0200
commit9a33732f6afc31d3682d7c2a3259f4c1986beb26 (patch)
treed329955ce61ab62b361ee3deb70f365cfade68f9 /source
parentAdded cEnvelopeParser and cMultipartParser. (diff)
downloadcuberite-9a33732f6afc31d3682d7c2a3259f4c1986beb26.tar
cuberite-9a33732f6afc31d3682d7c2a3259f4c1986beb26.tar.gz
cuberite-9a33732f6afc31d3682d7c2a3259f4c1986beb26.tar.bz2
cuberite-9a33732f6afc31d3682d7c2a3259f4c1986beb26.tar.lz
cuberite-9a33732f6afc31d3682d7c2a3259f4c1986beb26.tar.xz
cuberite-9a33732f6afc31d3682d7c2a3259f4c1986beb26.tar.zst
cuberite-9a33732f6afc31d3682d7c2a3259f4c1986beb26.zip
Diffstat (limited to '')
-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