Skip to content

Commit

Permalink
fix(objectnode): fix listobjectv1 err with delimiter
Browse files Browse the repository at this point in the history
Signed-off-by: tangdeyi <[email protected]>
  • Loading branch information
tangdeyi authored and leonrayang committed Aug 30, 2023
1 parent 08c4672 commit adb37a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion objectnode/api_handler_object.go
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,7 @@ func (o *ObjectNode) getBucketV1Handler(w http.ResponseWriter, r *http.Request)
return
}
// The result of next list request should not include nextMarker.
if result.Truncated {
if result.Truncated && len(result.Files) != 0 {
result.NextMarker = result.Files[len(result.Files)-1].Path
}

Expand Down

0 comments on commit adb37a0

Please sign in to comment.