mod_rest/mod_rest.lua
changeset 4731 e6f46d1b3337
parent 4703 a8af632daf48
child 4738 e58ec4b3cf90
--- a/mod_rest/mod_rest.lua	Tue Oct 26 17:52:15 2021 +0200
+++ b/mod_rest/mod_rest.lua	Tue Oct 26 18:07:35 2021 +0200
@@ -242,6 +242,7 @@
 			return post_errors.new("unauthz");
 		end
 		from = jid.join(origin.username, origin.host, origin.resource);
+		origin.type = "c2s";
 	end
 	local payload, err = parse_request(request, path);
 	if not payload then