aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_status_handler.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/http/modules/ngx_http_status_handler.c')
-rw-r--r--src/http/modules/ngx_http_status_handler.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/http/modules/ngx_http_status_handler.c b/src/http/modules/ngx_http_status_handler.c
index 57d7aa077..97492ebb9 100644
--- a/src/http/modules/ngx_http_status_handler.c
+++ b/src/http/modules/ngx_http_status_handler.c
@@ -70,8 +70,7 @@ static ngx_int_t ngx_http_status_handler(ngx_http_request_t *r)
return rc;
}
- if (!(r->headers_out.content_type =
- ngx_http_add_header(&r->headers_out, ngx_http_headers_out)))
+ if (!(r->headers_out.content_type = ngx_push_list(&r->headers_out.headers)))
{
return NGX_HTTP_INTERNAL_SERVER_ERROR;
}