Mercurial > prosody-modules
changeset 5950:f89367e421d1
mod_storage_s3: Inherit default HTTP client settings
Here too
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 07 Aug 2024 21:28:11 +0200 |
parents | 97a9f939d472 |
children | d6a695abb33c |
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 Wed Aug 07 17:59:14 2024 +0200 +++ b/mod_storage_s3/mod_storage_s3.lua Wed Aug 07 21:28:11 2024 +0200 @@ -114,7 +114,7 @@ if not mt then return nil, "unsupported-store"; end - local httpclient = http.new({ connection_pooling = true }); + local httpclient = http.default:new({ connection_pooling = true }); httpclient.events.add_handler("pre-request", aws_auth); return setmetatable({ store = store; bucket = bucket; type = typ; http = httpclient }, mt); end