Skip to content

Commit

Permalink
Allow to upload empty files in stream based uploads (#958)
Browse files Browse the repository at this point in the history
  • Loading branch information
jespino authored and kannappanr committed Mar 26, 2018
1 parent c405bbc commit f50615f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api-put-object.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ func (c Client) putObjectMultipartStreamNoLength(ctx context.Context, bucketName
if rErr == io.EOF && partNumber > 1 {
break
}
if rErr != nil && rErr != io.ErrUnexpectedEOF {
if rErr != nil && rErr != io.ErrUnexpectedEOF && rErr != io.EOF {
return 0, rErr
}
// Update progress reader appropriately to the latest offset
Expand Down

0 comments on commit f50615f

Please sign in to comment.