diff --git a/lib/index.js b/lib/index.js index 747b96e..00f857c 100644 --- a/lib/index.js +++ b/lib/index.js @@ -6,8 +6,9 @@ var generateQueryString = require('./utils').generateQueryString, var runQuery = function (credentials, method) { return function (query, cb) { - var url = generateQueryString(query, method, credentials); var req = query.request || request; + delete query.request; + var url = generateQueryString(query, method, credentials); if (typeof cb === 'function') { req(url, function (err, response, body) {