From a882ad99aee368b2bc5a369c52bc22ca0b412b1f Mon Sep 17 00:00:00 2001 From: Nick Ferraro Date: Tue, 14 Jul 2015 22:01:38 -0700 Subject: [PATCH] Fix dropped query from path Fixes #11 --- lib/wget.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/wget.js b/lib/wget.js index 1b55d3e..0e4cb16 100644 --- a/lib/wget.js +++ b/lib/wget.js @@ -24,7 +24,7 @@ function download(src, output, options) { protocol: srcUrl.protocol, host: srcUrl.hostname, port: srcUrl.port, - path: srcUrl.pathname, + path: srcUrl.path, proxy: options?options.proxy:undefined, method: 'GET' }, function(res) { @@ -144,4 +144,4 @@ function cleanProtocol(str) { } exports.download = download; -exports.request = request; \ No newline at end of file +exports.request = request;