From 6f6f1681929ed7d8fd9973539d2d6defb8efdc09 Mon Sep 17 00:00:00 2001 From: C-3PO Date: Sun, 8 Jul 2018 18:12:08 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=20Fix=20file=20name?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/cdn/downloadUrlContents.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cdn/downloadUrlContents.ts b/src/cdn/downloadUrlContents.ts index 0856415..d179d54 100644 --- a/src/cdn/downloadUrlContents.ts +++ b/src/cdn/downloadUrlContents.ts @@ -26,7 +26,7 @@ export default function downloadUrlContents({ host, path, size }: {host: string, family: 4, host, 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 request.on('error', (error) => {