fix download
This commit is contained in:
parent
2261105368
commit
3aeba06f8b
1 changed files with 3 additions and 1 deletions
|
@ -115,7 +115,9 @@ class DownloadCommand extends Command {
|
|||
|
||||
const params = new URLSearchParams();
|
||||
params.append('url', args.link.href);
|
||||
params.append('proxy', proxy[args.proxy].ip);
|
||||
if (proxy[args.proxy] !== undefined) {
|
||||
params.append('proxy', proxy[args.proxy].ip);
|
||||
}
|
||||
|
||||
fetch(`${Hapi}/download`, {method: 'POST', body: params})
|
||||
.then(async res => {
|
||||
|
|
Loading…
Reference in a new issue