mirror of
https://github.com/nginx/nginx.git
synced 2024-12-22 15:13:28 -06: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_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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user