Diff

mod_rest/mod_rest.lua @ 4745:d29a295cd165

mod_rest: Let 'type' be implied in path based queries This will make e.g. MAM queries work via GET /archive/{to}
author Kim Alvefur <zash@zash.se>
date Thu, 04 Nov 2021 20:15:44 +0100
parent 4737:2bc5a0c0d8c3
child 4841:f69c5a443156
line wrap: on
line diff
--- a/mod_rest/mod_rest.lua	Thu Nov 04 20:13:43 2021 +0100
+++ b/mod_rest/mod_rest.lua	Thu Nov 04 20:15:44 2021 +0100
@@ -110,7 +110,6 @@
 		-- GET /iq/disco/jid
 		data = {
 			kind = "iq";
-			type = "get";
 			[st_type] = st_type == "ping" or data or {};
 		};
 	else