Skip to content

Commit

Permalink
Add missing aws-chunked transfer encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
klauspost committed Apr 7, 2023
1 parent 5b15988 commit a5b47f4
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 a5b47f4

Please sign in to comment.