diff options
author | Igor Sysoev <igor@sysoev.ru> | 2007-12-27 13:13:34 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2007-12-27 13:13:34 +0000 |
commit | e87afbad3538e868548491ee7ec5ae10cccbd8b4 (patch) | |
tree | 8401800e4ff014086765fb254c8235e819585ded /src/http/ngx_http_request.c | |
parent | 57c4b0a83b239e648bd697f76b82ea2feca32b84 (diff) | |
download | nginx-e87afbad3538e868548491ee7ec5ae10cccbd8b4.tar.gz nginx-e87afbad3538e868548491ee7ec5ae10cccbd8b4.zip |
call post_action for 499
Diffstat (limited to 'src/http/ngx_http_request.c')
-rw-r--r-- | src/http/ngx_http_request.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c index b2c873331..a5ebf1292 100644 --- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c @@ -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; } |