comparison src/http/modules/ngx_http_static_handler.c @ 416:b9bd635011de

nginx-0.0.10-2004-09-06-22:45:00 import
author Igor Sysoev <igor@sysoev.ru>
date Mon, 06 Sep 2004 18:45:00 +0000
parents 3c56e834be46
children da8c5707af39
comparison
equal deleted inserted replaced
415:3c56e834be46 416:b9bd635011de
339 } 339 }
340 340
341 *last++ = '/'; 341 *last++ = '/';
342 *last = '\0'; 342 *last = '\0';
343 343
344 if (!(r->headers_out.location = ngx_push_list(&r->headers_out.headers))) 344 r->headers_out.location = ngx_list_push(&r->headers_out.headers);
345 { 345 if (r->headers_out.location == NULL) {
346 return NGX_HTTP_INTERNAL_SERVER_ERROR; 346 return NGX_HTTP_INTERNAL_SERVER_ERROR;
347 } 347 }
348 348
349 r->headers_out.location->value = location; 349 r->headers_out.location->value = location;
350 350