# HG changeset patch # User Kim Alvefur # Date 1701519991 -3600 # Node ID ff8b6d0b3bfa646c0fc88067c199acaf3338a981 # Parent 754f8eaad34c7651b1ce6d4f0dfd8788b2f607ad mod_storage_s3: Fix mapping archive query limit to ?max-keys= diff -r 754f8eaad34c -r ff8b6d0b3bfa mod_storage_s3/mod_storage_s3.lua --- 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;