From 8175bf7bdaa7f8d5bff612af0a2f5dad78998064 Mon Sep 17 00:00:00 2001 From: Klaus Post Date: Fri, 7 Apr 2023 07:49:27 -0700 Subject: [PATCH] Add missing aws-chunked transfer encoding (#1803) Fixes #1802 --- pkg/signer/request-signature-streaming.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/signer/request-signature-streaming.go b/pkg/signer/request-signature-streaming.go index 1c2f1dc9d..31afb9d43 100644 --- a/pkg/signer/request-signature-streaming.go +++ b/pkg/signer/request-signature-streaming.go @@ -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)