Skip to content

Commit 48517d8

Browse files
authored
Fixed #1994 - incorrect MPU threshold (#1995)
1 parent eab5f2c commit 48517d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api-put-object.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ func (c *Client) putObjectCommon(ctx context.Context, bucketName, objectName str
333333
return c.putObjectMultipartStreamNoLength(ctx, bucketName, objectName, reader, opts)
334334
}
335335

336-
if size < int64(partSize) || opts.DisableMultipart {
336+
if size <= int64(partSize) || opts.DisableMultipart {
337337
return c.putObject(ctx, bucketName, objectName, reader, size, opts)
338338
}
339339

0 commit comments

Comments
 (0)