changeset 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
parents f478855f4565
children 88f5e12c8351
files mod_rest/mod_rest.lua
diffstat 1 files changed, 0 insertions(+), 1 deletions(-) [+]
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