]> git.kaiwu.me - nginx.git/commitdiff
call post_action for 499
authorIgor Sysoev <igor@sysoev.ru>
Thu, 27 Dec 2007 13:13:34 +0000 (13:13 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Thu, 27 Dec 2007 13:13:34 +0000 (13:13 +0000)
src/http/ngx_http_request.c

index b2c873331f029f7ed32595bbc033651dff122fc3..a5ebf1292fb54790224bfd70c58a1362457ba1e3 100644 (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;
         }