🚑 Fix file name
This commit is contained in:
parent
96ed471afe
commit
6f6f168192
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ export default function downloadUrlContents({ host, path, size }: {host: string,
|
||||||
family: 4,
|
family: 4,
|
||||||
host,
|
host,
|
||||||
path,
|
path,
|
||||||
}, saveResponse.bind(null, path, resolve, (reason: string) => { request.abort(); reject(reason); }));
|
}, saveResponse.bind(null, tempFileName, resolve, (reason: string) => { request.abort(); reject(reason); }));
|
||||||
|
|
||||||
//In case of connection errors, exit early
|
//In case of connection errors, exit early
|
||||||
request.on('error', (error) => {
|
request.on('error', (error) => {
|
||||||
|
|
Loading…
Reference in a new issue