fix concat table bool and string

pull/92/head
loveshell 2016-01-30 10:20:28 +08:00
parent 3492d0601c
commit 6606edda34
1 changed files with 7 additions and 2 deletions

View File

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