From 98471291c0c58ae34d3abcae9b8f40489520f04b Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Thu, 13 Feb 2020 15:04:10 -0500 Subject: [PATCH] curlirize --- packages/siaviewnode-server/src/main.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/siaviewnode-server/src/main.ts b/packages/siaviewnode-server/src/main.ts index 47b0ef91..7faab6d0 100644 --- a/packages/siaviewnode-server/src/main.ts +++ b/packages/siaviewnode-server/src/main.ts @@ -37,7 +37,7 @@ const MAX_UPLOAD_FILESIZE = 1000 * 1024 * 1024 const SIAD_ENDPOINT = "http://localhost:9980" // simple siad connection with static strings -const siad = curlirize(axios.create({ +const siad = axios.create({ baseURL: SIAD_ENDPOINT, headers: { "User-Agent": "Sia-Agent", @@ -47,8 +47,9 @@ const siad = curlirize(axios.create({ username: "", password: fs.readFileSync(homedir().concat("/.sia/apipassword"), "utf8").trim() } -})) +}) +curlirize(siad); // Ramda shared utility functions const selectFile = R.path(["files", "file"])