Skip to content

Commit

Permalink
revert extra codegen
Browse files Browse the repository at this point in the history
  • Loading branch information
Tianyi Wang committed Nov 20, 2024
1 parent 606d1ad commit 59e520b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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-"))
Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit 59e520b

Please sign in to comment.