comparison src/http/ngx_http_request.c @ 777:4ab852b691f5

<!--#include virtual=... set=... -->
author Igor Sysoev <igor@sysoev.ru>
date Fri, 13 Oct 2006 15:20:10 +0000
parents d8d7c39e3a76
children 362d156f0278
comparison
equal deleted inserted replaced
776:5622cdd48e5b 777:4ab852b691f5
1474 r->write_event_handler = ngx_http_core_run_phases; 1474 r->write_event_handler = ngx_http_core_run_phases;
1475 ngx_http_core_run_phases(r); 1475 ngx_http_core_run_phases(r);
1476 return; 1476 return;
1477 } 1477 }
1478 1478
1479 if (r != r->main 1479 if (r != r->main && r->post_subrequest) {
1480 && rc != NGX_ERROR 1480 rc = r->post_subrequest->handler(r, r->post_subrequest->data, rc);
1481 && !r->connection->error
1482 && !r->request_output
1483 && r->out)
1484 {
1485 if (!r->header_sent) {
1486 rc = ngx_http_set_content_type(r);
1487
1488 if (rc == NGX_OK) {
1489 rc = ngx_http_send_header(r);
1490
1491 if (rc != NGX_ERROR) {
1492 rc = ngx_http_output_filter(r, r->out);
1493 }
1494 }
1495
1496 } else {
1497 rc = ngx_http_output_filter(r, r->out);
1498 }
1499 } 1481 }
1500 1482
1501 if (rc == NGX_ERROR 1483 if (rc == NGX_ERROR
1502 || rc == NGX_HTTP_REQUEST_TIME_OUT 1484 || rc == NGX_HTTP_REQUEST_TIME_OUT
1503 || r->connection->error) 1485 || r->connection->error)