Skip to content

Commit

Permalink
add back removed useTrailer due to use in unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
isaiahvita committed Dec 28, 2023
1 parent bb050be commit 382b435
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ type computeInputPayloadChecksum struct {
// header for the decoded length of the underlying stream. Will only be set
// when used with trailing checksums, and aws-chunked content-encoding.
EnableDecodedContentLengthHeader bool

useTrailer bool
}

type useTrailer struct {}
Expand Down Expand Up @@ -178,6 +180,7 @@ func (m *computeInputPayloadChecksum) HandleFinalize(
// ContentSHA256Header middleware handles the header
ctx = v4.SetPayloadHash(ctx, streamingUnsignedPayloadTrailerPayloadHash)
}
m.useTrailer = true
ctx = context.WithValue(ctx, useTrailer{}, true)
return next.HandleFinalize(ctx, in)
}
Expand Down

0 comments on commit 382b435

Please sign in to comment.