Skip to content

Commit

Permalink
fix: duplicate content-length header in go 1.22
Browse files Browse the repository at this point in the history
  • Loading branch information
alanshaw committed Nov 16, 2024
1 parent faa387c commit 464d314
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/w3.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,9 @@ func storeShard(issuer principal.Signer, space did.DID, shard io.Reader, proofs

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

Expand Down

0 comments on commit 464d314

Please sign in to comment.