From 59e520b456658d9ccbcd0813481852190d36909f Mon Sep 17 00:00:00 2001 From: Tianyi Wang Date: Wed, 20 Nov 2024 17:30:57 -0500 Subject: [PATCH] revert extra codegen --- .../internal/checksum/middleware_compute_input_checksum.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service/internal/checksum/middleware_compute_input_checksum.go b/service/internal/checksum/middleware_compute_input_checksum.go index f7e43bb5cd8..71a51bf747a 100644 --- a/service/internal/checksum/middleware_compute_input_checksum.go +++ b/service/internal/checksum/middleware_compute_input_checksum.go @@ -131,7 +131,7 @@ func (m *computeInputPayloadChecksum) HandleFinalize( }() // If any checksum header is already set nothing to do. - for header, _ := range req.Header { + for header := range req.Header { h := strings.ToUpper(header) if strings.HasPrefix(h, "X-AMZ-CHECKSUM-") { algorithm = Algorithm(strings.TrimPrefix(h, "X-AMZ-CHECKSUM-")) @@ -277,7 +277,7 @@ func (m *addInputChecksumTrailer) HandleFinalize( } // If any checksum header is already set nothing to do. - for header, _ := range req.Header { + for header := range req.Header { if strings.HasPrefix(strings.ToLower(header), "x-amz-checksum-") { return next.HandleFinalize(ctx, in) }