Skip to content

Commit

Permalink
Add missing aws-chunked transfer encoding (#1803)
Browse files Browse the repository at this point in the history
Fixes #1802
  • Loading branch information
klauspost authored Apr 7, 2023
1 parent 5b15988 commit 8175bf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/signer/request-signature-streaming.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ func prepareStreamingRequest(req *http.Request, sessionToken string, dataLen int
for k := range req.Trailer {
req.Header.Add("X-Amz-Trailer", strings.ToLower(k))
}
req.TransferEncoding = []string{"aws-chunked"}
}
req.TransferEncoding = []string{"aws-chunked"}

if sessionToken != "" {
req.Header.Set("X-Amz-Security-Token", sessionToken)
Expand Down

0 comments on commit 8175bf7

Please sign in to comment.