Fix blatant typo

This commit is contained in:
Alex Beregszaszi 2018-08-09 12:13:40 +01:00
parent f2af486a28
commit b5c6ad4e83
1 changed files with 2 additions and 2 deletions

View File

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