diff --git a/lib/request.js b/lib/request.js index 1cf087c..d250701 100644 --- a/lib/request.js +++ b/lib/request.js @@ -75,7 +75,7 @@ class Request { const spread = Object.assign({}, options, { protocol: urlResult.protocol, hostname: urlResult.hostname, - path: urlResult.pathname + urlResult.search + path: urlResult.pathname + (urlResult.search || '') }); const req = https.request(spread, (res) => { const data = [];