From ead5b660299c4581e1d13d372efe029acad9a35f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9sar=20D=2E=20Rodas?= Date: Thu, 5 Dec 2013 13:44:24 -0500 Subject: [PATCH] Update wget.js It was failing if the URL has some get argument involved. --- 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;