ngx.header can not be used in the phase `init_worker`
On Wednesday, May 10, 2017 at 1:07:29 PM UTC+8, 项楠 wrote:
local ngx_header = ngx.header
return function ()
-- using ngx_header here
end
For example. I define a module `a.lua` above and preload it :
init_by_lua_block {
require "a.lua"
}