fix segfault

This commit is contained in:
Igor Sysoev 2007-01-09 22:04:40 +00:00
parent fe9a066d69
commit 2c32b5a1d2

View File

@ -87,7 +87,10 @@ ngx_http_addition_header_filter(ngx_http_request_t *r)
ngx_http_addition_ctx_t *ctx;
ngx_http_addition_conf_t *conf;
if (r->headers_out.status != NGX_HTTP_OK || r != r->main) {
if (r->headers_out.status != NGX_HTTP_OK
|| r != r->main
|| r->headers_out.content_type.data == NULL)
{
return ngx_http_next_header_filter(r);
}