aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_core_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2004-05-12 05:37:55 +0000
committerIgor Sysoev <igor@sysoev.ru>2004-05-12 05:37:55 +0000
commit31f7f6a5410c258e9ad85a4b166804bc57b4c0b9 (patch)
treefc7e941d377f9059784e4cfcaa3ac81d1ff2a197 /src/http/ngx_http_core_module.c
parentd365af4a15a86f4d3f2774b197ef417dbce8a164 (diff)
downloadnginx-31f7f6a5410c258e9ad85a4b166804bc57b4c0b9.tar.gz
nginx-31f7f6a5410c258e9ad85a4b166804bc57b4c0b9.zip
nginx-0.0.3-2004-05-12-09:37:55 import
Diffstat (limited to 'src/http/ngx_http_core_module.c')
-rw-r--r--src/http/ngx_http_core_module.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
index b7eb95112..b8e1a195d 100644
--- a/src/http/ngx_http_core_module.c
+++ b/src/http/ngx_http_core_module.c
@@ -658,6 +658,27 @@ int ngx_http_send_header(ngx_http_request_t *r)
}
+ngx_int_t ngx_http_output_filter(ngx_http_request_t *r, ngx_chain_t *in)
+{
+ ngx_int_t rc;
+
+ if (r->connection->write->error) {
+ return NGX_ERROR;
+ }
+
+ rc = ngx_http_top_body_filter(r, in);
+
+ if (rc == NGX_ERROR) {
+
+ /* NGX_ERROR could be returned by any filter */
+
+ r->connection->write->error = 1;
+ }
+
+ return rc;
+}
+
+
int ngx_http_redirect(ngx_http_request_t *r, int redirect)
{
/* STUB */