comparison mod_storage_s3/mod_storage_s3.lua @ 5675:17ea26cf7259

mod_storage_s3: Use '@' as placeholder for empty (host) store slots Used when the server stores things for itself.
author Kim Alvefur <zash@zash.se>
date Sat, 14 Oct 2023 22:49:57 +0200
parents 51d0311747fa
children 799f69a5921a
comparison
equal deleted inserted replaced
5674:51d0311747fa 5675:17ea26cf7259
137 return url.build_path({ 137 return url.build_path({
138 is_absolute = true; 138 is_absolute = true;
139 bucket; 139 bucket;
140 jid.escape(module.host); 140 jid.escape(module.host);
141 jid.escape(self.store); 141 jid.escape(self.store);
142 jid.escape(key or ""); 142 jid.escape(key or "@");
143 }) 143 })
144 end 144 end
145 145
146 function keyval:get(user) 146 function keyval:get(user)
147 return async.wait_for(new_request("GET", self:_path(user)):next(on_result)); 147 return async.wait_for(new_request("GET", self:_path(user)):next(on_result));