Skip to content

Commit

Permalink
sia: proxy data key, not cid
Browse files Browse the repository at this point in the history
  • Loading branch information
n8maninger committed Nov 21, 2023
1 parent 1354d85 commit 4b488e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sia/sia.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func (n *Node) ProxyHTTPDownload(cid cid.Cid, r *http.Request, w http.ResponseWr
return errors.New("cannot proxy partial downloads")
}

target, err := url.Parse(n.renterd.Address + "/objects/" + cid.String())
target, err := url.Parse(n.renterd.Address + "/objects/" + block.Data.Key)
if err != nil {
panic(err)
}
Expand Down

0 comments on commit 4b488e1

Please sign in to comment.