Skip to content

Commit

Permalink
Change bzz API to bzz-raw (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
Svetomir Smiljkovic authored Jun 10, 2020
1 parent 8184a18 commit 7e66ebc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/beeclient/api/bzz.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type BzzService service

// Download downloads data from the node
func (b *BzzService) Download(ctx context.Context, a swarm.Address) (resp io.ReadCloser, err error) {
return b.client.requestData(ctx, http.MethodGet, "/bzz/"+a.String(), nil, nil)
return b.client.requestData(ctx, http.MethodGet, "/bzz-raw/"+a.String(), nil, nil)
}

// UploadResponse represents Upload's response
Expand All @@ -23,6 +23,6 @@ type UploadResponse struct {

// Upload uploads data to the node
func (b *BzzService) Upload(ctx context.Context, data io.Reader) (resp UploadResponse, err error) {
err = b.client.request(ctx, http.MethodPost, "/bzz", data, &resp)
err = b.client.request(ctx, http.MethodPost, "/bzz-raw", data, &resp)
return
}
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package beekeeper

var (
version = "0.2.7" // manually set semantic version number
version = "0.2.8" // manually set semantic version number
commit string // automatically set git commit hash

// Version TODO
Expand Down

0 comments on commit 7e66ebc

Please sign in to comment.