gonginx
gonginx copied to clipboard
set_by_lua_block $wocao {} not support
panic now
Hi @ermazi thaks for reporting, can you please provide more details? or just share the conf you have issue with
if i have a block like this:
set_by_lua_block $file_name {
local t = ngx.var.uri
local query = string.find(t, "?", 1)
if query ~= nil then
t = string.sub(t, 1, query-1)
end
return t;
}
then the code gonginx.DumpBlock(conf.Block, gonginx.IndentStyle) will dump this result:
set_by_lua_block {
local t = ngx.var.uri local query = string.find(t, "?" , 1) if query ~= nil then t = string.sub(t, 1, query-1) end return t;
}
it's worse when dump it several times @tufanbarisyildirim