Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: bump go-w3up, check content headers #2

Merged
merged 1 commit into from
Nov 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ require (
github.com/omeid/uconfig v0.5.0
github.com/stretchr/testify v1.8.4
github.com/web3-storage/go-ucanto v0.1.0
github.com/web3-storage/go-w3up v0.0.2
github.com/web3-storage/go-w3up v0.0.3
golang.org/x/exp v0.0.0-20230213192124-5e25df0256eb
)

Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,8 @@ github.com/warpfork/go-wish v0.0.0-20220906213052-39a1cc7a02d0 h1:GDDkbFiaK8jsSD
github.com/warpfork/go-wish v0.0.0-20220906213052-39a1cc7a02d0/go.mod h1:x6AKhvSSexNrVSrViXSHUEbICjmGXhtgABaHIySUSGw=
github.com/web3-storage/go-ucanto v0.1.0 h1:Hg6jO7OLLeDLtmseQZWQGBFJMp+5t5OWAFVL5Y3LsOs=
github.com/web3-storage/go-ucanto v0.1.0/go.mod h1:XD6zahQ8HLh8Z2CSK7xYcTR0A7oCVYXTZB7fFtYqGF8=
github.com/web3-storage/go-w3up v0.0.2 h1:MhGPNSaZZKxsIoARj83TwIjFVwtz7r7r67R4aD3maDA=
github.com/web3-storage/go-w3up v0.0.2/go.mod h1:GGTPPHhc44LW6jCZlsXQtjn653rPzJJtN78XyJDnXTE=
github.com/web3-storage/go-w3up v0.0.3 h1:zSyj+TSh7gxCZffhMN7m4E6t6XhIEGkq7bRb+khpAug=
github.com/web3-storage/go-w3up v0.0.3/go.mod h1:GGTPPHhc44LW6jCZlsXQtjn653rPzJJtN78XyJDnXTE=
github.com/whyrusleeping/cbor v0.0.0-20171005072247-63513f603b11 h1:5HZfQkwe0mIfyDmc1Em5GqlNRzcdtlv4HTNmdpt7XH0=
github.com/whyrusleeping/cbor v0.0.0-20171005072247-63513f603b11/go.mod h1:Wlo/SzPmxVp6vXpGt/zaXhHH0fn4IxgqZc82aKg6bpQ=
github.com/whyrusleeping/cbor-gen v0.0.0-20230818171029-f91ae536ca25 h1:yVYDLoN2gmB3OdBXFW8e1UwgVbmCvNlnAKhvHPaNARI=
Expand Down
3 changes: 3 additions & 0 deletions uploader.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,9 @@ func (c *w3sclient) upload(root cid.Cid, dest string) (_ cid.Cid, err error) {

hdr := map[string][]string{}
for k, v := range rcpt.Out().Ok().Headers.Values {
if k == "content-length" {
continue
}
hdr[k] = []string{v}
}
hr.Header = hdr
Expand Down
Loading