Closed spacewander closed 6 years ago
@spacewander Will you make add_header
a function in a new ngx.req
Lua module in the following location?
https://github.com/openresty/lua-resty-core/tree/master/lib/ngx/
We do not want to add more of the builtin Lua API functions now since every new Lua API function adds more GC and memory overhead even though the current OpenResty app does not really need it.
Thanks!
@agentzh
Do you mean ngx.resp
Lua module?
@spacewander Oh, yes, sorry. I mean ngx.resp
.
I pushed a modified patch to lua-nginx-module for now: https://github.com/openresty/lua-nginx-module/commit/9ea1c06
Waiting for your updated PR for lua-resty-core :)
This pr is the sister pr of https://github.com/openresty/lua-resty-core/pull/180