comparison src/http/modules/ngx_http_addition_filter_module.c @ 1003:28a8e9b9e8f9

fix segfault
author Igor Sysoev <igor@sysoev.ru>
date Tue, 09 Jan 2007 22:04:40 +0000
parents c2cae54f2045
children db7c468c447d
comparison
equal deleted inserted replaced
1002:cdde2d4ea5d8 1003:28a8e9b9e8f9
85 ngx_http_addition_header_filter(ngx_http_request_t *r) 85 ngx_http_addition_header_filter(ngx_http_request_t *r)
86 { 86 {
87 ngx_http_addition_ctx_t *ctx; 87 ngx_http_addition_ctx_t *ctx;
88 ngx_http_addition_conf_t *conf; 88 ngx_http_addition_conf_t *conf;
89 89
90 if (r->headers_out.status != NGX_HTTP_OK || r != r->main) { 90 if (r->headers_out.status != NGX_HTTP_OK
91 || r != r->main
92 || r->headers_out.content_type.data == NULL)
93 {
91 return ngx_http_next_header_filter(r); 94 return ngx_http_next_header_filter(r);
92 } 95 }
93 96
94 conf = ngx_http_get_module_loc_conf(r, ngx_http_addition_filter_module); 97 conf = ngx_http_get_module_loc_conf(r, ngx_http_addition_filter_module);
95 98