Skip to content

Commit

Permalink
unixfs/feather: implement IPIP402 and IPIP412
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorropo committed Oct 9, 2023
1 parent b768a43 commit 0b05316
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions unixfs/feather/entry.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,10 @@ type downloader struct {
}

func DownloadFile(c cid.Cid) (io.ReadCloser, error) {
req, err := http.NewRequest("GET", gateway+c.String(), bytes.NewReader(nil))
req, err := http.NewRequest("GET", gateway+c.String()+"?dag-scope=entity&dups=y", bytes.NewReader(nil))
if err != nil {
return nil, err
}
// FIXME: Specify ordered DFS with duplicates
req.Header.Add("Accept", "application/vnd.ipld.car")

resp, err := http.DefaultClient.Do(req)
Expand Down

0 comments on commit 0b05316

Please sign in to comment.