diff mod_rest/mod_rest.lua @ 4955:537054999093

mod_rest: Provide a log function on temporary session Fixes traceback in places using session.log()
author Kim Alvefur <zash@zash.se>
date Sun, 29 May 2022 02:02:07 +0200
parents e67cc71727ca
children 732229fe68ab
line wrap: on
line diff
--- a/mod_rest/mod_rest.lua	Sat May 28 16:43:04 2022 +0200
+++ b/mod_rest/mod_rest.lua	Sun May 29 02:02:07 2022 +0200
@@ -305,6 +305,7 @@
 		end
 		from = jid.join(origin.username, origin.host, origin.resource);
 		origin.type = "c2s";
+		origin.log = module._log;
 	end
 	local payload, err = parse_request(request, path);
 	if not payload then