Browse Source

fix concat table bool and string

pull/92/head
loveshell 9 years ago
parent
commit
6606edda34
  1. 9
      init.lua

9
init.lua

@ -109,9 +109,14 @@ function args()
local args = ngx.req.get_uri_args() local args = ngx.req.get_uri_args()
for key, val in pairs(args) do for key, val in pairs(args) do
if type(val)=='table' then if type(val)=='table' then
if val ~= false then local t={}
data=table.concat(val, " ") for k,v in pairs(val) do
if v == true then
v=""
end end
table.insert(t,v)
end
data=table.concat(t, " ")
else else
data=val data=val
end end

Loading…
Cancel
Save