# HG changeset patch # User Kim Alvefur # Date 1614542393 -3600 # Node ID dad0367d33e8c64409a4bedc412dd4d7a133dde6 # Parent 356b5ad521a5a6f833ac0541ce20322b7e838a87 mod_rest: Revert leftover of unfinished ?query mapping Idea was to allow second level data fields to be passed as query parameters, i.e. /rest/command/{to}/?command=execute&node=foobar but that's still a work in progress, so reverted here for now. diff -r 356b5ad521a5 -r dad0367d33e8 mod_rest/mod_rest.lua --- a/mod_rest/mod_rest.lua Sun Feb 28 20:47:32 2021 +0100 +++ b/mod_rest/mod_rest.lua Sun Feb 28 20:59:53 2021 +0100 @@ -65,11 +65,9 @@ if not st_kind then return; end if st_kind == "iq" and st_type ~= "get" and st_type ~= "set" then -- GET /iq/disco/jid - data = { - kind = "iq"; - type = "get"; - [st_type] = data; - } + data.kind = "iq"; + data.type = "get"; + data.[st_type] = true; else data.kind = st_kind; data.type = st_type;