call post_action for 499
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c
index b2c8733..a5ebf12 100644
--- a/src/http/ngx_http_request.c
+++ b/src/http/ngx_http_request.c
@@ -1595,7 +1595,11 @@
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;
}