Hello!
On Thu, May 5, 2016 at 12:36 AM, rako9000 wrote:
> I want to do something for open source, and I found lua-nginx-module. I read
> the todo list, which contain this "add new API function ngx.resp.add_header
> to emulate the standard add_header config directive.", but I don't know
> what is the difference between ngx.header and ngx.resp.add_header?
>
Writing to ngx.header[name] overrides any existing headers of the same
name while ngx.resp.add_header() leave all the existing headers
intact.
Regards,
-agentzh