diff options
author | Igor Sysoev <igor@sysoev.ru> | 2004-09-06 18:45:00 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2004-09-06 18:45:00 +0000 |
commit | aab4d8c0c4aa068cc7ddcb1c5daee330d9dec47a (patch) | |
tree | 30f6fb63eb08c72af5855f0a784df32a64057706 /src/http/modules/ngx_http_static_handler.c | |
parent | 980a92472cc30271ad7e88eb2dcc43f00e984d4d (diff) | |
download | nginx-aab4d8c0c4aa068cc7ddcb1c5daee330d9dec47a.tar.gz nginx-aab4d8c0c4aa068cc7ddcb1c5daee330d9dec47a.zip |
nginx-0.0.10-2004-09-06-22:45:00 import
Diffstat (limited to 'src/http/modules/ngx_http_static_handler.c')
-rw-r--r-- | src/http/modules/ngx_http_static_handler.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/http/modules/ngx_http_static_handler.c b/src/http/modules/ngx_http_static_handler.c index ad7d9cf53..5d27ccafc 100644 --- a/src/http/modules/ngx_http_static_handler.c +++ b/src/http/modules/ngx_http_static_handler.c @@ -341,8 +341,8 @@ static ngx_int_t ngx_http_static_handler(ngx_http_request_t *r) *last++ = '/'; *last = '\0'; - if (!(r->headers_out.location = ngx_push_list(&r->headers_out.headers))) - { + r->headers_out.location = ngx_list_push(&r->headers_out.headers); + if (r->headers_out.location == NULL) { return NGX_HTTP_INTERNAL_SERVER_ERROR; } |