From fd0e5078491525dc1055e9919adbb9e6f29715d4 Mon Sep 17 00:00:00 2001 From: Klaus Post Date: Mon, 5 Aug 2024 08:29:11 -0700 Subject: [PATCH] Add DisableContentSha256 to PutObjectPartOptions (#1988) For fixing https://github.com/minio/warp/issues/329 --- core.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core.go b/core.go index 132ea702f..99b99db9b 100644 --- a/core.go +++ b/core.go @@ -91,6 +91,7 @@ type PutObjectPartOptions struct { Md5Base64, Sha256Hex string SSE encrypt.ServerSide CustomHeader, Trailer http.Header + DisableContentSha256 bool } // PutObjectPart - Upload an object part. @@ -107,7 +108,7 @@ func (c Core) PutObjectPart(ctx context.Context, bucket, object, uploadID string sha256Hex: opts.Sha256Hex, size: size, sse: opts.SSE, - streamSha256: true, + streamSha256: !opts.DisableContentSha256, customHeader: opts.CustomHeader, trailer: opts.Trailer, }