Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set_by_lua_block $wocao {} not support #20

Open
ermazi opened this issue Jun 20, 2023 · 2 comments
Open

set_by_lua_block $wocao {} not support #20

ermazi opened this issue Jun 20, 2023 · 2 comments
Assignees
Labels
v2 issues that would be fixed in v2 only

Comments

@ermazi
Copy link

ermazi commented Jun 20, 2023

panic now

@tufanbarisyildirim
Copy link
Owner

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

@FeiYing9
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v2 issues that would be fixed in v2 only
Projects
None yet
Development

No branches or pull requests

3 participants