From: Igor Sysoev Date: Thu, 27 Dec 2007 13:13:34 +0000 (+0000) Subject: call post_action for 499 X-Git-Tag: release-0.6.23~9 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/postgres_fdw.c?a=commitdiff_plain;h=e87afbad3538e868548491ee7ec5ae10cccbd8b4;p=nginx.git call post_action for 499 --- 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; }