Closed milkliker closed 2 years ago
https://github.com/hgouveia/node-downloader-helper/blob/30b3dfec11c9ab45abd62c25cb6d00e03a982634/src/index.js#L845
__getOptions(method, url, headers = {}) { const urlParse = new URL(url); const options = { protocol: urlParse.protocol, host: urlParse.hostname, port: urlParse.port, path: urlParse.pathname, // <--- I think this should be: urlParse.pathname + urlParse.search method: method }; if (headers) { options['headers'] = headers; } return options; }
Oh sorry, duplicate with #82
Implemented on v2.1.0
https://github.com/hgouveia/node-downloader-helper/blob/30b3dfec11c9ab45abd62c25cb6d00e03a982634/src/index.js#L845