Bugfix: "forcedefault" would be treated as "default".
the build was successful
Details
the build was successful
Details
This commit is contained in:
parent
00a29894e9
commit
3f32e4ff51
|
@ -106,7 +106,11 @@ const Request http::parse_request(const string &request)
|
|||
|
||||
const string http::get_parameter(const string &request, const string ¶meter)
|
||||
{
|
||||
std::size_t pos = request.find(parameter + "=");
|
||||
std::size_t pos = request.find("&" + parameter + "=");
|
||||
if (pos == std::string::npos)
|
||||
{
|
||||
pos = request.find("?" + parameter + "=");
|
||||
}
|
||||
if (pos != std::string::npos)
|
||||
{
|
||||
pos += (1 + parameter.length());
|
||||
|
|
Loading…
Reference in New Issue