gonginx icon indicating copy to clipboard operation
gonginx copied to clipboard

set_by_lua_block $wocao {} not support

Open ermazi opened this issue 2 years ago • 2 comments

panic now

ermazi avatar Jun 20 '23 14:06 ermazi

Hi @ermazi thaks for reporting, can you please provide more details? or just share the conf you have issue with

tufanbarisyildirim avatar Jun 26 '23 06:06 tufanbarisyildirim

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

FeiYing9 avatar Oct 18 '23 07:10 FeiYing9