aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_static_handler.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2004-09-05 19:54:02 +0000
committerIgor Sysoev <igor@sysoev.ru>2004-09-05 19:54:02 +0000
commit980a92472cc30271ad7e88eb2dcc43f00e984d4d (patch)
treeb8940cd9e6b8859c78e3c023c1373bae02371f2e /src/http/modules/ngx_http_static_handler.c
parentb9e344175f4e971284aa14c8fe685936a4957d52 (diff)
downloadnginx-980a92472cc30271ad7e88eb2dcc43f00e984d4d.tar.gz
nginx-980a92472cc30271ad7e88eb2dcc43f00e984d4d.zip
nginx-0.0.10-2004-09-05-23:54:02 import
Diffstat (limited to 'src/http/modules/ngx_http_static_handler.c')
-rw-r--r--src/http/modules/ngx_http_static_handler.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/http/modules/ngx_http_static_handler.c b/src/http/modules/ngx_http_static_handler.c
index cf942ad24..ad7d9cf53 100644
--- a/src/http/modules/ngx_http_static_handler.c
+++ b/src/http/modules/ngx_http_static_handler.c
@@ -341,8 +341,7 @@ static ngx_int_t ngx_http_static_handler(ngx_http_request_t *r)
*last++ = '/';
*last = '\0';
- 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;
}