Skip to content

Commit

Permalink
service/s3/s3manager: Fixed upload for 0 length files.
Browse files Browse the repository at this point in the history
  • Loading branch information
domenipavec authored and jasdel committed Aug 17, 2015
1 parent 1ba5d88 commit 47f3c2a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions service/s3/s3manager/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ func (u *uploader) nextReader() (io.ReadSeeker, error) {

if bytesLeft == 0 {
err = io.EOF
n = bytesLeft
} else if bytesLeft <= u.opts.PartSize {
err = io.ErrUnexpectedEOF
n = bytesLeft
Expand Down

0 comments on commit 47f3c2a

Please sign in to comment.