From aab4d8c0c4aa068cc7ddcb1c5daee330d9dec47a Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 6 Sep 2004 18:45:00 +0000 Subject: nginx-0.0.10-2004-09-06-22:45:00 import --- src/http/modules/ngx_http_status_handler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/http/modules/ngx_http_status_handler.c') diff --git a/src/http/modules/ngx_http_status_handler.c b/src/http/modules/ngx_http_status_handler.c index 97492ebb9..6fc1e777d 100644 --- a/src/http/modules/ngx_http_status_handler.c +++ b/src/http/modules/ngx_http_status_handler.c @@ -70,8 +70,8 @@ static ngx_int_t ngx_http_status_handler(ngx_http_request_t *r) return rc; } - if (!(r->headers_out.content_type = ngx_push_list(&r->headers_out.headers))) - { + r->headers_out.content_type = ngx_list_push(&r->headers_out.headers); + if (r->headers_out.content_type == NULL) { return NGX_HTTP_INTERNAL_SERVER_ERROR; } -- cgit