From 6ac41fcc480e500ccc8c189c6b9be79ad5d56e34 Mon Sep 17 00:00:00 2001 From: C-3PO Date: Wed, 4 Jul 2018 22:10:59 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=20Fix=20download=20file=20name?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/cdn/funcs/saveResponse.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cdn/funcs/saveResponse.ts b/src/cdn/funcs/saveResponse.ts index 9ba09c2..24b0432 100644 --- a/src/cdn/funcs/saveResponse.ts +++ b/src/cdn/funcs/saveResponse.ts @@ -14,7 +14,7 @@ export default function saveResponse( //Remember file size const headerLength = Number(response.headers['content-length']); - const tempFileName = `'/tmp/swtor-patcher-download-${Math.random()}.tmp`; + const tempFileName = `/tmp/swtor-patcher-download-${Math.random()}.tmp`; //If we receive a part of the response, write it to disk let previousChunk: Promise = new Promise((innerResolve) => { innerResolve(); });