From a654a28239a5277d4b5ed1dfd4b5644450df55d1 Mon Sep 17 00:00:00 2001 From: Prasad Dighe Date: Sun, 28 Aug 2022 19:23:53 +0530 Subject: [PATCH] Added query parameter to promise based get method --- lib/needle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/needle.js b/lib/needle.js index cfae245ce..7e13ee37e 100644 --- a/lib/needle.js +++ b/lib/needle.js @@ -901,7 +901,7 @@ module.exports.defaults = function(obj) { 'head get'.split(' ').forEach(function(method) { module.exports[method] = function(uri, options, callback) { - return new Needle(method, uri, null, options, callback).start(); + return new Needle(method, uri, options.params, options, callback).start(); } })