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;