Skip to content

Commit

Permalink
fix maxKeys error while using listObject query
Browse files Browse the repository at this point in the history
  • Loading branch information
lakshit1 authored Nov 20, 2024
1 parent 9f0db7c commit 19641dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/minio.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 19641dd

Please sign in to comment.