Remove query string from attempt to find route
MODIFY
lib/protocol/routes.js
lib/protocol/routes.js
@@ -655,8 +655,15 @@ class Route {
function routeToCommandName (endpoint, method) {
let dstRoute = null;
+
+ // remove any query string
+ if (endpoint.includes('?')) {
+ endpoint = endpoint.slice(0, endpoint.indexOf('?'));
+ }
+
const actualEndpoint = endpoint === '/' ? '' :
(_.startsWith(endpoint, '/') ? endpoint : `/${endpoint}`);
+
for (let currentRoute of _.keys(METHOD_MAP)) {
const route = new Route(currentRoute);
// we don't care about the actual session id for matching

Remove query string from attempt to find route