🚑 Fix file name

This commit is contained in:
C-3PO 2018-07-08 18:12:08 +02:00
parent 96ed471afe
commit 6f6f168192
Signed by: c3po
GPG key ID: 62993C4BB4D86F24

View file

@ -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) => {