Skip to content

Commit fd0e507

Browse files
authored
Add DisableContentSha256 to PutObjectPartOptions (#1988)
For fixing minio/warp#329
1 parent d80dc8b commit fd0e507

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ type PutObjectPartOptions struct {
9191
Md5Base64, Sha256Hex string
9292
SSE encrypt.ServerSide
9393
CustomHeader, Trailer http.Header
94+
DisableContentSha256 bool
9495
}
9596

9697
// PutObjectPart - Upload an object part.
@@ -107,7 +108,7 @@ func (c Core) PutObjectPart(ctx context.Context, bucket, object, uploadID string
107108
sha256Hex: opts.Sha256Hex,
108109
size: size,
109110
sse: opts.SSE,
110-
streamSha256: true,
111+
streamSha256: !opts.DisableContentSha256,
111112
customHeader: opts.CustomHeader,
112113
trailer: opts.Trailer,
113114
}

0 commit comments

Comments
 (0)