fix short variable name
This commit is contained in:
parent
8611e40172
commit
2102648102
@ -79,15 +79,15 @@ void RequestHandler::handle_request(const http::Request &req, http::Reply &reply
|
|||||||
RouteParameters route_parameters;
|
RouteParameters route_parameters;
|
||||||
APIGrammarParser api_parser(&route_parameters);
|
APIGrammarParser api_parser(&route_parameters);
|
||||||
|
|
||||||
auto it = request.begin();
|
auto iter = request.begin();
|
||||||
const bool result = boost::spirit::qi::parse(it, request.end(), api_parser);
|
const bool result = boost::spirit::qi::parse(iter, request.end(), api_parser);
|
||||||
|
|
||||||
// check if the was an error with the request
|
// check if the was an error with the request
|
||||||
if (!result || (it != request.end()))
|
if (!result || (iter != request.end()))
|
||||||
{
|
{
|
||||||
reply = http::Reply::StockReply(http::Reply::badRequest);
|
reply = http::Reply::StockReply(http::Reply::badRequest);
|
||||||
reply.content.clear();
|
reply.content.clear();
|
||||||
const int position = std::distance(request.begin(), it);
|
const int position = std::distance(request.begin(), iter);
|
||||||
JSON::Object json_result;
|
JSON::Object json_result;
|
||||||
json_result.values["status"] = 400;
|
json_result.values["status"] = 400;
|
||||||
std::string message = ("Query string malformed close to position " + IntToString(position));
|
std::string message = ("Query string malformed close to position " + IntToString(position));
|
||||||
|
Loading…
Reference in New Issue
Block a user