Send Partscount only when partnumber is specified (#9793)

Fixes #9789
This commit is contained in:
kannappanr
2020-06-10 09:22:15 -07:00
committed by GitHub
parent 3d3b75fb8d
commit 2c372a9894
5 changed files with 25 additions and 7 deletions

View File

@@ -903,7 +903,7 @@ func getOpts(ctx context.Context, r *http.Request, bucket, object string) (Objec
if err != nil {
return opts, err
}
if partNumber < 0 {
if partNumber <= 0 {
return opts, errInvalidArgument
}
}