diff --git a/src/handle_request.js b/src/handle_request.js index dc84f3c..9315559 100644 --- a/src/handle_request.js +++ b/src/handle_request.js @@ -43,6 +43,10 @@ function handleRequest(mockAdapter, resolve, reject, config) { url = url.slice(config.baseURL.length); } + if (url.indexOf("?") !== -1) { + url = url.substring(0, url.indexOf("?")) + } + delete config.adapter; mockAdapter.history[config.method].push(config);