mirror of
https://github.com/nginx/nginx.git
synced 2025-06-11 20:53:30 +08:00
fix segfault
This commit is contained in:
parent
fe9a066d69
commit
2c32b5a1d2
@ -87,7 +87,10 @@ ngx_http_addition_header_filter(ngx_http_request_t *r)
|
|||||||
ngx_http_addition_ctx_t *ctx;
|
ngx_http_addition_ctx_t *ctx;
|
||||||
ngx_http_addition_conf_t *conf;
|
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);
|
return ngx_http_next_header_filter(r);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user