]> git.kaiwu.me - nginx.git/commitdiff
fix request counter for X-Accel-Redirect, the bug was introduced in r3050
authorIgor Sysoev <igor@sysoev.ru>
Sun, 13 Sep 2009 13:45:32 +0000 (13:45 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Sun, 13 Sep 2009 13:45:32 +0000 (13:45 +0000)
src/http/ngx_http_upstream.c

index 5186b8010107962e17c3d9f3ee8eccaeecd6cc09..380b3c2f0960255e96287c57e35e1e00f863e0f1 100644 (file)
@@ -1815,6 +1815,7 @@ ngx_http_upstream_process_headers(ngx_http_request_t *r, ngx_http_upstream_t *u)
         r->valid_unparsed_uri = 0;
 
         ngx_http_internal_redirect(r, uri, &args);
+        ngx_http_finalize_request(r, NGX_DONE);
         return NGX_DONE;
     }