updated to the new pikotools api: SpaceParser::SetSpace(...) methods have been removed
This commit is contained in:
@@ -1136,7 +1136,6 @@ void App::ReadPostJson()
|
||||
const int buffer_len = sizeof(buffer) / sizeof(char) - 1;
|
||||
int read_len;
|
||||
|
||||
space_parser.SetSpace(cur.request->post_in);
|
||||
post_buffer.clear();
|
||||
post_buffer.reserve(1024 * 1024 * 5); // IMPROVEME add to config?
|
||||
|
||||
@@ -1155,7 +1154,7 @@ void App::ReadPostJson()
|
||||
|
||||
if( !post_buffer.empty() )
|
||||
{
|
||||
pt::SpaceParser::Status status = space_parser.ParseJSON(post_buffer.c_str());
|
||||
pt::SpaceParser::Status status = space_parser.ParseJSON(post_buffer.c_str(), cur.request->post_in);
|
||||
post_buffer.clear();
|
||||
|
||||
if( status != pt::SpaceParser::ok )
|
||||
|
Reference in New Issue
Block a user