          ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
                        "subrequests cycle while processing \"%V\"", uri);
          r->main->subrequests = 1;
-@@ -2489,6 +2492,8 @@ ngx_http_subrequest(ngx_http_request_t *r,
+@@ -2491,6 +2494,8 @@ ngx_http_subrequest(ngx_http_request_t *r,
  
      *psr = sr;
  

         if (ngx_http_post_request(pr, NULL) != NGX_OK) {
             r->main->count++;
             ngx_http_terminate_request(r, 0);

     }
 
     if (rc == NGX_ERROR
@@ -2013,6 +2022,8 @@ ngx_http_finalize_request(ngx_http_request_t *r, ngx_int_t rc)
 
         if (r->buffered || r->postponed) {
 
