comparison src/http/ngx_http_core_module.c @ 415:3c56e834be46

nginx-0.0.10-2004-09-05-23:54:02 import
author Igor Sysoev <igor@sysoev.ru>
date Sun, 05 Sep 2004 19:54:02 +0000
parents 4765ded59eaa
children b9bd635011de
comparison
equal deleted inserted replaced
414:388a842cbbe1 415:3c56e834be46
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 = 534 if (!(r->headers_out.location = ngx_push_list(&r->headers_out.headers)))
535 ngx_http_add_header(&r->headers_out, ngx_http_headers_out)))
536 { 535 {
537 return NGX_HTTP_INTERNAL_SERVER_ERROR; 536 return NGX_HTTP_INTERNAL_SERVER_ERROR;
538 } 537 }
539 538
540 r->headers_out.location->value = clcf->name; 539 r->headers_out.location->value = clcf->name;
672 uint32_t key; 671 uint32_t key;
673 ngx_uint_t i; 672 ngx_uint_t i;
674 ngx_http_type_t *type; 673 ngx_http_type_t *type;
675 ngx_http_core_loc_conf_t *clcf; 674 ngx_http_core_loc_conf_t *clcf;
676 675
677 if (!(r->headers_out.content_type = 676 if (!(r->headers_out.content_type = ngx_push_list(&r->headers_out.headers)))
678 ngx_http_add_header(&r->headers_out, ngx_http_headers_out)))
679 { 677 {
680 return NGX_HTTP_INTERNAL_SERVER_ERROR; 678 return NGX_HTTP_INTERNAL_SERVER_ERROR;
681 } 679 }
682 680
683 r->headers_out.content_type->key.len = 0; 681 r->headers_out.content_type->key.len = 0;