call post_action for 499

This commit is contained in:
Igor Sysoev 2007-12-27 13:13:34 +00:00
parent 57c4b0a83b
commit e87afbad35

View File

@ -1595,7 +1595,11 @@ ngx_http_finalize_request(ngx_http_request_t *r, ngx_int_t rc)
rc = r->post_subrequest->handler(r, r->post_subrequest->data, rc);
}
if (rc == NGX_ERROR || rc == NGX_HTTP_REQUEST_TIME_OUT || c->error) {
if (rc == NGX_ERROR
|| rc == NGX_HTTP_REQUEST_TIME_OUT
|| rc == NGX_HTTP_CLIENT_CLOSED_REQUEST
|| c->error)
{
if (rc > 0 && r->headers_out.status == 0) {
r->headers_out.status = rc;
}