Query string starts with '?' before first parameter and not '&'. See

http://en.wikipedia.org/wiki/Query_string for an explanation. Fixes
issue #121. Thanks Jochen for the reminder!
This commit is contained in:
DennisOSRM
2012-02-17 08:45:09 +01:00
parent 1744e69214
commit b897b5d0e2
2 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -53,9 +53,9 @@ public:
std::string request(req.uri);
// INFO( "[r] " << request );
std::string command;
std::size_t firstAmpPosition = request.find_first_of("&");
std::size_t firstAmpPosition = request.find_first_of("?");
command = request.substr(1,firstAmpPosition-1);
// DEBUG("[debug] looking for handler for command: " << command);
DEBUG("[debug] looking for handler for command: " << command);
try {
if(pluginMap.Holds(command)) {