Hello!
On Fri, Feb 20, 2015 at 6:39 PM, David Birdsong wrote:
> I'm calling ngx.set_uri('/foo'), false) but my header_filter_by_lua snippet
> doesn't appear to be called.
>
The ngx.req.set_uri('/foo', false) call only modifies the request URI
without doing any internal redirects, by definition.
header_filter_by_lua is only called when the current location is
generating a response header (note that even internal redirects do not
send response header themselves).
> I'd understand if I was jumping to a new location, but is it expected that
> header_filters inside the same location would be ignored or am I doing
> something else wrong?
>
Actually I'm confused by what you're really doing here. A minimal and
standalone example can be more helpful.
Regards,
-agentzh