changeset 5762:ff8b6d0b3bfa

mod_storage_s3: Fix mapping archive query limit to ?max-keys=
author Kim Alvefur <zash@zash.se>
date Sat, 02 Dec 2023 13:26:31 +0100
parents 754f8eaad34c
children 6c0570a8b866
files mod_storage_s3/mod_storage_s3.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_storage_s3/mod_storage_s3.lua	Sat Dec 02 12:30:28 2023 +0100
+++ b/mod_storage_s3/mod_storage_s3.lua	Sat Dec 02 13:26:31 2023 +0100
@@ -249,7 +249,7 @@
 	prefix = table.concat(prefix, "/").."/";
 	local list_result, err = async.wait_for(new_request(self, "GET", bucket_path, {
 		prefix = prefix;
-		["max-keys"] = query["max"] and tostring(query["max"]);
+		["max-keys"] = query["limit"] and tostring(query["limit"]);
 	}));
 	if err or list_result.code ~= 200 then
 		return nil, err;