From 19641dd9ace7728ac62bfcb11e98507794d77736 Mon Sep 17 00:00:00 2001 From: Lakshit <51991640+lakshit1@users.noreply.github.com> Date: Wed, 20 Nov 2024 13:18:22 +0530 Subject: [PATCH] fix maxKeys error while using listObject query --- lib/src/minio.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/minio.dart b/lib/src/minio.dart index d47e325..33b9091 100644 --- a/lib/src/minio.dart +++ b/lib/src/minio.dart @@ -564,7 +564,7 @@ class Minio { if (maxKeys != null) { maxKeys = maxKeys >= 1000 ? 1000 : maxKeys; - queries['maxKeys'] = maxKeys.toString(); + queries['max-keys'] = maxKeys.toString(); } final resp = await _client.request( @@ -674,7 +674,7 @@ class Minio { if (maxKeys != null) { maxKeys = maxKeys >= 1000 ? 1000 : maxKeys; - queries['maxKeys'] = maxKeys.toString(); + queries['max-keys'] = maxKeys.toString(); } final resp = await _client.request(