Mercurial > hg > nginx
comparison src/http/ngx_http_core_module.c @ 334:af451db3fe99
nginx-0.0.3-2004-05-12-09:37:55 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 12 May 2004 05:37:55 +0000 |
parents | 8733703a37f3 |
children | d4241d7787fe |
comparison
equal
deleted
inserted
replaced
333:be40e9893a19 | 334:af451db3fe99 |
---|---|
653 r->headers_out.status = r->err_status; | 653 r->headers_out.status = r->err_status; |
654 r->headers_out.status_line.len = 0; | 654 r->headers_out.status_line.len = 0; |
655 } | 655 } |
656 | 656 |
657 return (*ngx_http_top_header_filter)(r); | 657 return (*ngx_http_top_header_filter)(r); |
658 } | |
659 | |
660 | |
661 ngx_int_t ngx_http_output_filter(ngx_http_request_t *r, ngx_chain_t *in) | |
662 { | |
663 ngx_int_t rc; | |
664 | |
665 if (r->connection->write->error) { | |
666 return NGX_ERROR; | |
667 } | |
668 | |
669 rc = ngx_http_top_body_filter(r, in); | |
670 | |
671 if (rc == NGX_ERROR) { | |
672 | |
673 /* NGX_ERROR could be returned by any filter */ | |
674 | |
675 r->connection->write->error = 1; | |
676 } | |
677 | |
678 return rc; | |
658 } | 679 } |
659 | 680 |
660 | 681 |
661 int ngx_http_redirect(ngx_http_request_t *r, int redirect) | 682 int ngx_http_redirect(ngx_http_request_t *r, int redirect) |
662 { | 683 { |