fs: add UploadHeaders, DownloadHeaders to Update/Put/Open options

This commit is contained in:
Tim Gallant 2020-02-10 01:01:28 -08:00 committed by Nick Craig-Wood
parent 93caa459e3
commit 9bf3d3da4c
4 changed files with 52 additions and 31 deletions

View file

@ -74,7 +74,7 @@ func TestReOpen(t *testing.T) {
breaks: breaks,
}
hashOption := &fs.HashesOption{Hashes: hash.NewHashSet(hash.MD5)}
return NewReOpen(context.Background(), src, hashOption, rangeOption, maxRetries)
return NewReOpen(context.Background(), src, maxRetries, hashOption, rangeOption)
}
t.Run("Basics", func(t *testing.T) {