diff options
author | Igor Sysoev <igor@sysoev.ru> | 2004-09-05 19:54:02 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2004-09-05 19:54:02 +0000 |
commit | 980a92472cc30271ad7e88eb2dcc43f00e984d4d (patch) | |
tree | b8940cd9e6b8859c78e3c023c1373bae02371f2e /src/http/ngx_http_core_module.c | |
parent | b9e344175f4e971284aa14c8fe685936a4957d52 (diff) | |
download | nginx-980a92472cc30271ad7e88eb2dcc43f00e984d4d.tar.gz nginx-980a92472cc30271ad7e88eb2dcc43f00e984d4d.zip |
nginx-0.0.10-2004-09-05-23:54:02 import
Diffstat (limited to 'src/http/ngx_http_core_module.c')
-rw-r--r-- | src/http/ngx_http_core_module.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c index d242ebf44..62daa8dc1 100644 --- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -531,8 +531,7 @@ ngx_int_t ngx_http_find_location_config(ngx_http_request_t *r) if (rc == NGX_HTTP_LOCATION_AUTO_REDIRECT) { - if (!(r->headers_out.location = - ngx_http_add_header(&r->headers_out, ngx_http_headers_out))) + if (!(r->headers_out.location = ngx_push_list(&r->headers_out.headers))) { return NGX_HTTP_INTERNAL_SERVER_ERROR; } @@ -674,8 +673,7 @@ ngx_int_t ngx_http_set_content_type(ngx_http_request_t *r) ngx_http_type_t *type; ngx_http_core_loc_conf_t *clcf; - 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; } |