mirror of
https://github.com/nginx/nginx.git
synced 2025-08-06 06:46:16 +08:00
call post_action for 499
This commit is contained in:
parent
57c4b0a83b
commit
e87afbad35
@ -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);
|
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) {
|
if (rc > 0 && r->headers_out.status == 0) {
|
||||||
r->headers_out.status = rc;
|
r->headers_out.status = rc;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user