aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_request.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2006-10-13 15:20:10 +0000
committerIgor Sysoev <igor@sysoev.ru>2006-10-13 15:20:10 +0000
commit960100e371cdaa1986929ac8cd2f4f515160c7a6 (patch)
tree55920d61068f8052d2156da10c199f68bfe7deea /src/http/ngx_http_request.c
parent0ab9e437145620ea9e44c03173c9e60d9b29475b (diff)
downloadnginx-960100e371cdaa1986929ac8cd2f4f515160c7a6.tar.gz
nginx-960100e371cdaa1986929ac8cd2f4f515160c7a6.zip
<!--#include virtual=... set=... -->
Diffstat (limited to 'src/http/ngx_http_request.c')
-rw-r--r--src/http/ngx_http_request.c22
1 files changed, 2 insertions, 20 deletions
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c
index 5ce2e2ae7..a7bbcddd5 100644
--- a/src/http/ngx_http_request.c
+++ b/src/http/ngx_http_request.c
@@ -1476,26 +1476,8 @@ ngx_http_finalize_request(ngx_http_request_t *r, ngx_int_t rc)
return;
}
- if (r != r->main
- && rc != NGX_ERROR
- && !r->connection->error
- && !r->request_output
- && r->out)
- {
- if (!r->header_sent) {
- rc = ngx_http_set_content_type(r);
-
- if (rc == NGX_OK) {
- rc = ngx_http_send_header(r);
-
- if (rc != NGX_ERROR) {
- rc = ngx_http_output_filter(r, r->out);
- }
- }
-
- } else {
- rc = ngx_http_output_filter(r, r->out);
- }
+ if (r != r->main && r->post_subrequest) {
+ rc = r->post_subrequest->handler(r, r->post_subrequest->data, rc);
}
if (rc == NGX_ERROR