comparison mod_rest/mod_rest.lua @ 4481:e453eaf1589e

mod_rest: Fix syntax error in previous commit
author Kim Alvefur <zash@zash.se>
date Mon, 01 Mar 2021 17:33:32 +0100
parents dad0367d33e8
children eea62d30ae08
comparison
equal deleted inserted replaced
4480:dad0367d33e8 4481:e453eaf1589e
65 if not st_kind then return; end 65 if not st_kind then return; end
66 if st_kind == "iq" and st_type ~= "get" and st_type ~= "set" then 66 if st_kind == "iq" and st_type ~= "get" and st_type ~= "set" then
67 -- GET /iq/disco/jid 67 -- GET /iq/disco/jid
68 data.kind = "iq"; 68 data.kind = "iq";
69 data.type = "get"; 69 data.type = "get";
70 data.[st_type] = true; 70 data[st_type] = true;
71 else 71 else
72 data.kind = st_kind; 72 data.kind = st_kind;
73 data.type = st_type; 73 data.type = st_type;
74 end 74 end
75 if st_to and st_to ~= "" then 75 if st_to and st_to ~= "" then