From 7e66ebc9d233e5440a24f0426699d1e1464fa657 Mon Sep 17 00:00:00 2001 From: Svetomir Smiljkovic Date: Wed, 10 Jun 2020 16:09:47 +0200 Subject: [PATCH] Change bzz API to bzz-raw (#17) --- pkg/beeclient/api/bzz.go | 4 ++-- version.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/beeclient/api/bzz.go b/pkg/beeclient/api/bzz.go index dee75692c..cc152f7e6 100644 --- a/pkg/beeclient/api/bzz.go +++ b/pkg/beeclient/api/bzz.go @@ -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 @@ -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 } diff --git a/version.go b/version.go index d7461da2c..c68d66d29 100644 --- a/version.go +++ b/version.go @@ -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