Skip to content

Commit

Permalink
Add DisableContentSha256 to PutObjectPartOptions (#1988)
Browse files Browse the repository at this point in the history
For fixing minio/warp#329
  • Loading branch information
klauspost authored Aug 5, 2024
1 parent d80dc8b commit fd0e507
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ type PutObjectPartOptions struct {
Md5Base64, Sha256Hex string
SSE encrypt.ServerSide
CustomHeader, Trailer http.Header
DisableContentSha256 bool
}

// PutObjectPart - Upload an object part.
Expand All @@ -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,
}
Expand Down

0 comments on commit fd0e507

Please sign in to comment.