diff --git a/rustfs/src/storage/ecfs.rs b/rustfs/src/storage/ecfs.rs index d13e1cb7..37fd884f 100644 --- a/rustfs/src/storage/ecfs.rs +++ b/rustfs/src/storage/ecfs.rs @@ -1230,6 +1230,7 @@ impl S3 for FS { let prefix = prefix.unwrap_or_default(); let max_keys = match max_keys { Some(v) if v > 0 && v <= 1000 => v, + Some(v) if v > 1000 => 1000, None => 1000, _ => return Err(s3_error!(InvalidArgument, "max-keys must be between 1 and 1000")), };