mirror of
https://github.com/versity/versitygw.git
synced 2026-01-04 19:13:57 +00:00
Fixes #1342 This PR includes two main changes: 1. It fixes the case where `x-amz-checksum-x` (precalculated checksum headers) are not provided for `UploadPart`, and the checksum type for the multipart upload is `FULL_OBJECT`. In this scenario, the server no longer returns an error. 2. When no `x-amz-checksum-x` is provided for `UploadPart`, and `x-amz-sdk-checksum-algorithm` is also missing, the gateway now calculates the part checksum based on the multipart upload's checksum algorithm and stores it accordingly. Additionally, the PR adds integration tests for: * The two cases above * The case where only `x-amz-sdk-checksum-algorithm` is provided