diff --git a/cmd/gateway-gcs.go b/cmd/gateway-gcs.go index 50d9a6900..23fd946ce 100644 --- a/cmd/gateway-gcs.go +++ b/cmd/gateway-gcs.go @@ -302,10 +302,9 @@ func (l *gcsGateway) ListObjects(bucket string, prefix string, marker string, de nextMarker := "" prefixes := []string{} - maxKeys = maxKeys - // we'll set marker to continue it.PageInfo().Token = marker + it.PageInfo().MaxSize = maxKeys objects := []ObjectInfo{} for {