comparison src/http/ngx_http_core_module.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 0526206251f6
comparison
equal deleted inserted replaced
415:3c56e834be46 416:b9bd635011de
529 return NGX_HTTP_REQUEST_ENTITY_TOO_LARGE; 529 return NGX_HTTP_REQUEST_ENTITY_TOO_LARGE;
530 } 530 }
531 531
532 532
533 if (rc == NGX_HTTP_LOCATION_AUTO_REDIRECT) { 533 if (rc == NGX_HTTP_LOCATION_AUTO_REDIRECT) {
534 if (!(r->headers_out.location = ngx_push_list(&r->headers_out.headers))) 534 r->headers_out.location = ngx_list_push(&r->headers_out.headers);
535 { 535 if (r->headers_out.location == NULL) {
536 return NGX_HTTP_INTERNAL_SERVER_ERROR; 536 return NGX_HTTP_INTERNAL_SERVER_ERROR;
537 } 537 }
538 538
539 r->headers_out.location->value = clcf->name; 539 r->headers_out.location->value = clcf->name;
540 540
671 uint32_t key; 671 uint32_t key;
672 ngx_uint_t i; 672 ngx_uint_t i;
673 ngx_http_type_t *type; 673 ngx_http_type_t *type;
674 ngx_http_core_loc_conf_t *clcf; 674 ngx_http_core_loc_conf_t *clcf;
675 675
676 if (!(r->headers_out.content_type = ngx_push_list(&r->headers_out.headers))) 676 r->headers_out.content_type = ngx_list_push(&r->headers_out.headers);
677 { 677 if (r->headers_out.content_type == NULL) {
678 return NGX_HTTP_INTERNAL_SERVER_ERROR; 678 return NGX_HTTP_INTERNAL_SERVER_ERROR;
679 } 679 }
680 680
681 r->headers_out.content_type->key.len = 0; 681 r->headers_out.content_type->key.len = 0;
682 r->headers_out.content_type->key.data = NULL; 682 r->headers_out.content_type->key.data = NULL;