diff --git a/pkg/blockstore/bee/client.go b/pkg/blockstore/bee/client.go index 2ac6e6ab..30ef8371 100644 --- a/pkg/blockstore/bee/client.go +++ b/pkg/blockstore/bee/client.go @@ -186,7 +186,7 @@ func (s *Client) UploadSOC(owner, id, signature string, data []byte) (address [] // the postage block id to store the SOC chunk req.Header.Set(swarmPostageBatchId, s.postageBlockId) - + req.Header.Set(contentTypeHeader, "application/octet-stream") req.Header.Set(swarmDeferredUploadHeader, "true") // TODO change this in the future when we have some alternative to pin SOC @@ -245,6 +245,8 @@ func (s *Client) UploadChunk(ch swarm.Chunk) (address []byte, err error) { req.Header.Set(swarmPinHeader, "true") } + req.Header.Set(contentTypeHeader, "application/octet-stream") + // the postage block id to store the chunk req.Header.Set(swarmPostageBatchId, s.postageBlockId) @@ -340,6 +342,8 @@ func (s *Client) UploadBlob(data []byte, tag uint32, encrypt bool) (address []by } req.Close = true + req.Header.Set(contentTypeHeader, "application/octet-stream") + if s.shouldPin { req.Header.Set(swarmPinHeader, "true") } diff --git a/pkg/pod/new.go b/pkg/pod/new.go index 38670e03..bd9995a3 100644 --- a/pkg/pod/new.go +++ b/pkg/pod/new.go @@ -56,6 +56,7 @@ func (p *Pod) CreatePod(podName, addressString, podPassword string) (*Info, erro for _, pod := range podList.SharedPods { sharedPods[pod.Address] = pod.Name } + var accountInfo *account.Info var fd *feed.API var file *f.File