Drop the parsed query string from url for incoming HTTP data.

This commit is contained in:
Thulinma 2012-08-25 22:15:23 +02:00
parent 95a11c88d5
commit fd2211f85f

View file

@ -144,6 +144,7 @@ bool HTTP::Parser::parse(std::string & HTTPbuffer){
protocol = tmpA; protocol = tmpA;
if (url.find('?') != std::string::npos){ if (url.find('?') != std::string::npos){
parseVars(url.substr(url.find('?')+1)); //parse GET variables parseVars(url.substr(url.find('?')+1)); //parse GET variables
url.resize(url.find('?'));
} }
}else{seenReq = false;} }else{seenReq = false;}
}else{seenReq = false;} }else{seenReq = false;}