From f19fd5229a1d466987077769ea5c99d07b1524c0 Mon Sep 17 00:00:00 2001 From: Lasse Bunk Date: Fri, 15 Jul 2016 18:52:30 +0200 Subject: [PATCH] Remove request from query string --- lib/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {