# HG changeset patch # User Kim Alvefur # Date 1579907951 -3600 # Node ID 11c34e97fe1a6753259475a3fa51dc1424e0fd79 # Parent 1b98345001237f08cf8dd68928fb94d675b2face mod_rest: Fix iteration over disco#info features diff -r 1b9834500123 -r 11c34e97fe1a mod_rest/jsonmap.lib.lua --- a/mod_rest/jsonmap.lib.lua Sat Jan 25 00:17:44 2020 +0100 +++ b/mod_rest/jsonmap.lib.lua Sat Jan 25 00:19:11 2020 +0100 @@ -65,7 +65,7 @@ end end if s.features then - for feature in ipairs(s.features) do + for _, feature in ipairs(s.features) do disco:tag("feature", { var = feature }):up(); end end