comparison mod_storage_s3/mod_storage_s3.lua @ 5699:83a2fb6df746

mod_storage_s3: Fix logging Seems request and response loggers is only a thing on http requests and responses from net.http.server, not net.http requests.
author Kim Alvefur <zash@zash.se>
date Sat, 11 Nov 2023 22:43:34 +0100
parents 991fb904fa49
children 9de7a1b36efb
comparison
equal deleted inserted replaced
5698:991fb904fa49 5699:83a2fb6df746
142 elseif content_type == "application/xml" then 142 elseif content_type == "application/xml" then
143 return xml.parse(response.body); 143 return xml.parse(response.body);
144 elseif content_type == "application/x-www-form-urlencoded" then 144 elseif content_type == "application/x-www-form-urlencoded" then
145 return httputil.formdecode(response.body); 145 return httputil.formdecode(response.body);
146 else 146 else
147 response.log("warn", "Unknown response data type %s", content_type); 147 module:log("warn", "Unknown response data type %s", content_type);
148 return response.body; 148 return response.body;
149 end 149 end
150 end 150 end
151 151
152 function keyval:_path(key) 152 function keyval:_path(key)