Skip to content

Commit 70d7034

Browse files
authored
Merge pull request #584 from fairDataSociety/issue582-bytes-fail-504
fix: #582
2 parents 32f2ec3 + 54e04f2 commit 70d7034

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

pkg/blockstore/bee/client.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ func (s *Client) UploadSOC(owner, id, signature string, data []byte) (address []
186186

187187
// the postage block id to store the SOC chunk
188188
req.Header.Set(swarmPostageBatchId, s.postageBlockId)
189-
189+
req.Header.Set(contentTypeHeader, "application/octet-stream")
190190
req.Header.Set(swarmDeferredUploadHeader, "true")
191191

192192
// 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) {
245245
req.Header.Set(swarmPinHeader, "true")
246246
}
247247

248+
req.Header.Set(contentTypeHeader, "application/octet-stream")
249+
248250
// the postage block id to store the chunk
249251
req.Header.Set(swarmPostageBatchId, s.postageBlockId)
250252

@@ -340,6 +342,8 @@ func (s *Client) UploadBlob(data []byte, tag uint32, encrypt bool) (address []by
340342
}
341343
req.Close = true
342344

345+
req.Header.Set(contentTypeHeader, "application/octet-stream")
346+
343347
if s.shouldPin {
344348
req.Header.Set(swarmPinHeader, "true")
345349
}

pkg/pod/new.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ func (p *Pod) CreatePod(podName, addressString, podPassword string) (*Info, erro
5656
for _, pod := range podList.SharedPods {
5757
sharedPods[pod.Address] = pod.Name
5858
}
59+
5960
var accountInfo *account.Info
6061
var fd *feed.API
6162
var file *f.File

0 commit comments

Comments
 (0)