diff --git a/index.js b/index.js index 76c9b78..6ccad83 100644 --- a/index.js +++ b/index.js @@ -90,6 +90,9 @@ module.exports.Remote = function(ipAddr) { if (typeof type !== 'undefined') { options.path = buildQueryString(options.path, { type: type }); } + else + options.path = buildQueryString(options.path); + } makeRequest(options, callbackHandler(callback)); }; @@ -317,4 +320,4 @@ module.exports.Remote = function(ipAddr) { return callback(new Error('HTTP request failed: ' + err)); }); }; -}; \ No newline at end of file +};