Skip to content

Commit c44cb2a

Browse files
authored
Fix PutObject and ConcurrentStreamParts error handling for empty stream (#2207)
1 parent 1451162 commit c44cb2a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎api-put-object-streaming.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ func (c *Client) putObjectMultipartStreamParallel(ctx context.Context, bucketNam
525525
break
526526
}
527527

528-
if rerr != nil && rerr != io.ErrUnexpectedEOF && err != io.EOF {
528+
if rerr != nil && rerr != io.ErrUnexpectedEOF && rerr != io.EOF {
529529
cancel()
530530
wg.Wait()
531531
return UploadInfo{}, rerr

0 commit comments

Comments
 (0)