diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2013-10-15 22:14:47 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2013-10-15 22:14:47 +0200 |
commit | cb9ccb36acfb1d80684098759f8f39c7022891dd (patch) | |
tree | f65f9ca3c1c70f447c41d9b7190bb5dc8fbb5071 /source/HTTPServer/HTTPFormParser.cpp | |
parent | Merge submodule changes (diff) | |
parent | Added HOOK_PLAYER_RIGHT_CLICK (diff) | |
download | cuberite-cb9ccb36acfb1d80684098759f8f39c7022891dd.tar cuberite-cb9ccb36acfb1d80684098759f8f39c7022891dd.tar.gz cuberite-cb9ccb36acfb1d80684098759f8f39c7022891dd.tar.bz2 cuberite-cb9ccb36acfb1d80684098759f8f39c7022891dd.tar.lz cuberite-cb9ccb36acfb1d80684098759f8f39c7022891dd.tar.xz cuberite-cb9ccb36acfb1d80684098759f8f39c7022891dd.tar.zst cuberite-cb9ccb36acfb1d80684098759f8f39c7022891dd.zip |
Diffstat (limited to 'source/HTTPServer/HTTPFormParser.cpp')
-rw-r--r-- | source/HTTPServer/HTTPFormParser.cpp | 12 |
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) |