comparison src/http/ngx_http_request.c @ 1783:cfb879757a43

call post_action for 499
author Igor Sysoev <igor@sysoev.ru>
date Thu, 27 Dec 2007 13:13:34 +0000
parents 06014cfdb5b1
children a35032212cf2
comparison
equal deleted inserted replaced
1782:db07cb9d1cbc 1783:cfb879757a43
1593 1593
1594 if (r != r->main && r->post_subrequest) { 1594 if (r != r->main && r->post_subrequest) {
1595 rc = r->post_subrequest->handler(r, r->post_subrequest->data, rc); 1595 rc = r->post_subrequest->handler(r, r->post_subrequest->data, rc);
1596 } 1596 }
1597 1597
1598 if (rc == NGX_ERROR || rc == NGX_HTTP_REQUEST_TIME_OUT || c->error) { 1598 if (rc == NGX_ERROR
1599 || rc == NGX_HTTP_REQUEST_TIME_OUT
1600 || rc == NGX_HTTP_CLIENT_CLOSED_REQUEST
1601 || c->error)
1602 {
1599 if (rc > 0 && r->headers_out.status == 0) { 1603 if (rc > 0 && r->headers_out.status == 0) {
1600 r->headers_out.status = rc; 1604 r->headers_out.status = rc;
1601 } 1605 }
1602 1606
1603 if (ngx_http_post_action(r) == NGX_OK) { 1607 if (ngx_http_post_action(r) == NGX_OK) {