Skip to content

Commit

Permalink
Replaces deprecated bzzr protocol with bzz-raw
Browse files Browse the repository at this point in the history
  • Loading branch information
JirkaChadima committed Jun 25, 2018
1 parent 4954ed0 commit 0945bcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/swarm.js
Expand Up @@ -56,7 +56,7 @@ module.exports = ({

// String -> String -> String
const rawUrl = swarmUrl => hash =>
`${swarmUrl}/bzzr:/${hash}`
`${swarmUrl}/bzz-raw:/${hash}`

// String -> String -> Promise Uint8Array
// Gets the raw contents of a Swarm hash address.
Expand Down Expand Up @@ -154,7 +154,7 @@ module.exports = ({
// Uploads raw data to Swarm.
// Returns a promise with the uploaded hash.
const uploadData = swarmUrl => data =>
request(`${swarmUrl}/bzzr:/`, {
request(`${swarmUrl}/bzz-raw:/`, {
body: typeof data === "string" ? fromString(data) : data,
method: "POST"});

Expand Down

0 comments on commit 0945bcf

Please sign in to comment.