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:
@@ -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)) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user