No headers filter for a subrequest
dakota at brokenpipe.ru
Mon Mar 16 13:27:56 UTC 2015
And one more question. I've noticed that I'll have to
copy-paste ngx_http_header_val_s definition too (because it is defined in
.c file) and this is a risk to have different structures when something is
changed in nginx and my module still have the previous version.
Another idea is to mock r->main and put it back after. Something like this
in my header filter:
main = r->main;
r->main = r;
rc = ngx_http_next_header_filter(r);
r->main = main;
This works for my current simple tests. Is this a completely bad idea?
On Mon, Mar 16, 2015 at 4:16 PM, Maxim Dounin <mdounin at mdounin.ru> wrote:
> On Mon, Mar 16, 2015 at 04:11:04PM +0300, Marat Dakota wrote:
> > But I might copy-paste the code from ngx_http_headers_filter() to my
> > filter, right? Or something will blow up eventually?
> Yes (with appropriate changes). Nothing will blow up if done
> Maxim Dounin
> nginx-devel mailing list
> nginx-devel at nginx.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nginx-devel