diff options
author | Tycho <work.tycho+git@gmail.com> | 2014-04-02 15:36:25 +0200 |
---|---|---|
committer | Tycho <work.tycho+git@gmail.com> | 2014-04-02 15:36:25 +0200 |
commit | 1f5a4a39f2cd9f63a7e5695689042d3c43b2e83b (patch) | |
tree | 34333266e925b76a486ff465bac6b6cd01606dc8 /src/HTTPServer/HTTPFormParser.h | |
parent | Fixed format string in HTTPConnection (diff) | |
download | cuberite-1f5a4a39f2cd9f63a7e5695689042d3c43b2e83b.tar cuberite-1f5a4a39f2cd9f63a7e5695689042d3c43b2e83b.tar.gz cuberite-1f5a4a39f2cd9f63a7e5695689042d3c43b2e83b.tar.bz2 cuberite-1f5a4a39f2cd9f63a7e5695689042d3c43b2e83b.tar.lz cuberite-1f5a4a39f2cd9f63a7e5695689042d3c43b2e83b.tar.xz cuberite-1f5a4a39f2cd9f63a7e5695689042d3c43b2e83b.tar.zst cuberite-1f5a4a39f2cd9f63a7e5695689042d3c43b2e83b.zip |
Diffstat (limited to '')
-rw-r--r-- | src/HTTPServer/HTTPFormParser.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/HTTPServer/HTTPFormParser.h b/src/HTTPServer/HTTPFormParser.h index b8e6d246c..01d103bb8 100644 --- a/src/HTTPServer/HTTPFormParser.h +++ b/src/HTTPServer/HTTPFormParser.h @@ -36,6 +36,9 @@ public: class cCallbacks { public: + + virtual ~cCallbacks() {}; + /// Called when a new file part is encountered in the form data virtual void OnFileStart(cHTTPFormParser & a_Parser, const AString & a_FileName) = 0; @@ -51,10 +54,10 @@ public: cHTTPFormParser(cHTTPRequest & a_Request, cCallbacks & a_Callbacks); /// Creates a parser with the specified content type that reads data from a string - cHTTPFormParser(eKind a_Kind, const char * a_Data, int a_Size, cCallbacks & a_Callbacks); + cHTTPFormParser(eKind a_Kind, const char * a_Data, size_t a_Size, cCallbacks & a_Callbacks); /// Adds more data into the parser, as the request body is received - void Parse(const char * a_Data, int a_Size); + void Parse(const char * a_Data, size_t a_Size); /** Notifies that there's no more data incoming and the parser should finish its parsing. Returns true if parsing successful |