mod_storage_s3/mod_storage_s3.lua
changeset 5766 ff8b6d0b3bfa
parent 5764 59e38aaa3ec1
equal deleted inserted replaced
5765:754f8eaad34c 5766:ff8b6d0b3bfa
   247 	end
   247 	end
   248 
   248 
   249 	prefix = table.concat(prefix, "/").."/";
   249 	prefix = table.concat(prefix, "/").."/";
   250 	local list_result, err = async.wait_for(new_request(self, "GET", bucket_path, {
   250 	local list_result, err = async.wait_for(new_request(self, "GET", bucket_path, {
   251 		prefix = prefix;
   251 		prefix = prefix;
   252 		["max-keys"] = query["max"] and tostring(query["max"]);
   252 		["max-keys"] = query["limit"] and tostring(query["limit"]);
   253 	}));
   253 	}));
   254 	if err or list_result.code ~= 200 then
   254 	if err or list_result.code ~= 200 then
   255 		return nil, err;
   255 		return nil, err;
   256 	end
   256 	end
   257 	local list_bucket_result = xml.parse(list_result.body);
   257 	local list_bucket_result = xml.parse(list_result.body);