Skip to content

Commit

Permalink
Merge pull request #51 from lassebunk/add-request-option
Browse files Browse the repository at this point in the history
Remove request from query string
  • Loading branch information
t3chnoboy authored Jul 21, 2016
2 parents 4ebf3bd + f19fd52 commit 5794568
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5794568

Please sign in to comment.