mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
bw - dont retrieve ctx when using api
This commit is contained in:
parent
2197f72be4
commit
355d671641
2 changed files with 3 additions and 3 deletions
|
|
@ -164,12 +164,12 @@ helpers.call_plugin = function(plugin, method)
|
|||
return true, ret
|
||||
end
|
||||
|
||||
helpers.fill_ctx = function()
|
||||
helpers.fill_ctx = function(no_ref)
|
||||
-- Return errors as table
|
||||
local errors = {}
|
||||
-- Try to load saved ctx
|
||||
local request = get_request()
|
||||
if request then
|
||||
if no_ref ~= true and request then
|
||||
apply_ref()
|
||||
end
|
||||
local ctx = ngx.ctx
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ server {
|
|||
|
||||
-- Fill ctx
|
||||
logger:log(INFO, "filling ngx.ctx ...")
|
||||
local ok, ret, errors, ctx = fill_ctx()
|
||||
local ok, ret, errors, ctx = fill_ctx(true)
|
||||
if not ok then
|
||||
logger:log(ERR, "fill_ctx() failed : " .. ret)
|
||||
elseif errors then
|
||||
|
|
|
|||
Loading…
Reference in a new issue