How to modfiy headers in and headers out

Igor Sysoev is at rambler-co.ru
Wed Oct 31 14:59:24 MSK 2007


On Wed, Oct 31, 2007 at 07:45:39PM +0800, Yingyuan Cheng wrote:

> After changed the order of my filter module defined in
> objs/ngx_modules.c which should go after ngx_http_header_filter module,
> it works. But I still get a segment fault when calling
> ngx_list_push(&r->headers_out.headers) in filter hook function.
> 
> Anyone could give me a explanation?
> 
> Thanks very much.

ngx_list_push(&r->headers_out.headers) should not cause segfault in this phase.
Could you show more code ?


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list