summaryrefslogtreecommitdiffstats
path: root/source/HTTPServer/HTTPFormParser.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-10-13 20:29:57 +0200
committermadmaxoft <github@xoft.cz>2013-10-13 20:29:57 +0200
commitefb7d4fd3e9d20facf6a5b3d41bee8ca3d894bbc (patch)
tree9a39bde0b280721461c7597631182a08d7921c86 /source/HTTPServer/HTTPFormParser.cpp
parentMerge branch 'metadata' of git://github.com/tigerw/MCServer into tigerw-metadata. (diff)
downloadcuberite-efb7d4fd3e9d20facf6a5b3d41bee8ca3d894bbc.tar
cuberite-efb7d4fd3e9d20facf6a5b3d41bee8ca3d894bbc.tar.gz
cuberite-efb7d4fd3e9d20facf6a5b3d41bee8ca3d894bbc.tar.bz2
cuberite-efb7d4fd3e9d20facf6a5b3d41bee8ca3d894bbc.tar.lz
cuberite-efb7d4fd3e9d20facf6a5b3d41bee8ca3d894bbc.tar.xz
cuberite-efb7d4fd3e9d20facf6a5b3d41bee8ca3d894bbc.tar.zst
cuberite-efb7d4fd3e9d20facf6a5b3d41bee8ca3d894bbc.zip
Diffstat (limited to 'source/HTTPServer/HTTPFormParser.cpp')
-rw-r--r--source/HTTPServer/HTTPFormParser.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/source/HTTPServer/HTTPFormParser.cpp b/source/HTTPServer/HTTPFormParser.cpp
index 7db7b4e6d..596db424e 100644
--- a/source/HTTPServer/HTTPFormParser.cpp
+++ b/source/HTTPServer/HTTPFormParser.cpp
@@ -52,6 +52,18 @@ cHTTPFormParser::cHTTPFormParser(cHTTPRequest & a_Request, cCallbacks & a_Callba
+cHTTPFormParser::cHTTPFormParser(eKind a_Kind, const char * a_Data, int a_Size, cCallbacks & a_Callbacks) :
+ m_Callbacks(a_Callbacks),
+ m_Kind(a_Kind),
+ m_IsValid(true)
+{
+ Parse(a_Data, a_Size);
+}
+
+
+
+
+
void cHTTPFormParser::Parse(const char * a_Data, int a_Size)
{
if (!m_IsValid)