Optimized HTTP parser to not attempt POST variable parsing on _all_ body payloads, but only POSTed payloads
This commit is contained in:
parent
370bdc19a0
commit
8ce3498269
1 changed files with 2 additions and 1 deletions
|
@ -875,7 +875,8 @@ bool HTTP::Parser::parse(std::string &HTTPbuffer){
|
|||
HTTPbuffer.erase(0, toappend);
|
||||
}
|
||||
if (length == body.length()){
|
||||
parseVars(body, vars); // parse POST variables
|
||||
//parse POST variables
|
||||
if (method == "POST"){parseVars(body, vars);}
|
||||
return true;
|
||||
}else{
|
||||
return false;
|
||||
|
|
Loading…
Add table
Reference in a new issue