remove delimiter if not set by client, also fetchOwner is optional (#17366)

This commit is contained in:
Harshavardhana
2023-06-06 21:31:47 -07:00
committed by GitHub
parent d1448adbda
commit 442c50ff00
4 changed files with 18 additions and 13 deletions
-1
View File
@@ -190,7 +190,6 @@ func (api objectAPIHandlers) listObjectsV2Handler(ctx context.Context, w http.Re
}
// Validate the query params before beginning to serve the request.
// fetch-owner is not validated since it is a boolean
if s3Error := validateListObjectsArgs(prefix, token, delimiter, encodingType, maxKeys); s3Error != ErrNone {
writeErrorResponse(ctx, w, errorCodes.ToAPIErr(s3Error), r.URL)
return