From b5c6ad4e8329e3a3e652cd977d2080d5989dd300 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Thu, 9 Aug 2018 12:13:40 +0100 Subject: [PATCH] Fix blatant typo --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index b89ccd3..a892b54 100644 --- a/index.js +++ b/index.js @@ -5,7 +5,7 @@ function isValidHash (hash) { } function getFile (gateway, url, cb) { - request('https://swarm-gateways.net/' + url, function (error, response, body) { + request(gateway + '/' + url, function (error, response, body) { if (error) { cb(error) } else if (response.statusCode !== 200) { @@ -19,7 +19,7 @@ function getFile (gateway, url, cb) { function putFile (gateway, content, cb) { request({ method: 'POST', - uri: 'https://swarm-gateways.net/bzz-raw:/', + uri: gateway + '/bzz-raw:/', body: content }, function (error, response, body) { if (error) {