comparison mod_rest/jsonmap.lib.lua @ 3849:11c34e97fe1a

mod_rest: Fix iteration over disco#info features
author Kim Alvefur <zash@zash.se>
date Sat, 25 Jan 2020 00:19:11 +0100
parents 1b9834500123
children 8d13b9c9ba75
comparison
equal deleted inserted replaced
3848:1b9834500123 3849:11c34e97fe1a
63 for _, identity in ipairs(s.identities) do 63 for _, identity in ipairs(s.identities) do
64 disco:tag("identity", { category = identity[1], type = identity[2] }):up(); 64 disco:tag("identity", { category = identity[1], type = identity[2] }):up();
65 end 65 end
66 end 66 end
67 if s.features then 67 if s.features then
68 for feature in ipairs(s.features) do 68 for _, feature in ipairs(s.features) do
69 disco:tag("feature", { var = feature }):up(); 69 disco:tag("feature", { var = feature }):up();
70 end 70 end
71 end 71 end
72 end 72 end
73 return disco; 73 return disco;