local cjson = require "cjson" local session = require"resty.session".open() if (session == nil or session.data.identify == nil) then local chunk, eof = ngx.arg[1], ngx.arg[2]; local post_list = cjson.decode(chunk); for i, v in pairs(private_folder) do for dir, value in pairs(post_list) do if (dir == v) then post_list[dir] = nil; end end end ngx.arg[1] = cjson.encode(post_list); ngx.arg[2] = true else end