diff --git a/go.mod b/go.mod index 7b5467a..fa0911f 100644 --- a/go.mod +++ b/go.mod @@ -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 ) diff --git a/go.sum b/go.sum index 7d9e0a8..f10d6a9 100644 --- a/go.sum +++ b/go.sum @@ -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= diff --git a/uploader.go b/uploader.go index 5201137..837c1ac 100644 --- a/uploader.go +++ b/uploader.go @@ -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