Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
klauspost committed Jun 2, 2023
1 parent 86880db commit 9c356c0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions functional_tests.go
Original file line number Diff line number Diff line change
Expand Up @@ -4823,10 +4823,7 @@ func testPresignedPostPolicy() {
policy.SetUserMetadata(metadataKey, metadataValue)

// Add CRC32C
hasher := crc32.New(crc32.MakeTable(crc32.Castagnoli))
hasher.Write(buf)
policy.SetUserData("checksum-algorithm", "CRC32C")
policy.SetUserData("checksum-crc32c", base64.StdEncoding.EncodeToString(hasher.Sum(nil)))
policy.SetChecksum(minio.ChecksumCRC32C.ChecksumBytes(buf))

args["policy"] = policy.String()

Expand Down

0 comments on commit 9c356c0

Please sign in to comment.