comparison Core/HttpServer/HttpHandler.cpp @ 207:7f74209ea0f8

RestApi
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 28 Nov 2012 16:23:11 +0100
parents fe180eae201d
children 78a8eaa5f30b
comparison
equal deleted inserted replaced
206:4453a010d0db 207:7f74209ea0f8
74 } 74 }
75 } 75 }
76 76
77 77
78 78
79 std::string HttpHandler::GetArgument(const Arguments& arguments, 79 std::string HttpHandler::GetArgument(const Arguments& getArguments,
80 const std::string& name, 80 const std::string& name,
81 const std::string& defaultValue) 81 const std::string& defaultValue)
82 { 82 {
83 Arguments::const_iterator it = arguments.find(name); 83 Arguments::const_iterator it = getArguments.find(name);
84 if (it == arguments.end()) 84 if (it == getArguments.end())
85 { 85 {
86 return defaultValue; 86 return defaultValue;
87 } 87 }
88 else 88 else
89 { 89 {