Skip to content

Commit

Permalink
Add DisableContentSha256 to PutObjectPartOptions
Browse files Browse the repository at this point in the history
For fixing minio/warp#329
  • Loading branch information
klauspost committed Aug 5, 2024
1 parent d80dc8b commit 15b5b54
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 15b5b54

Please sign in to comment.