changeset 3120:40b8b398dbbc

fix request counter for X-Accel-Redirect, the bug was introduced in r3050
author Igor Sysoev <igor@sysoev.ru>
date Sun, 13 Sep 2009 13:45:32 +0000
parents 4c90c9129a82
children bd2573c97e4a
files src/http/ngx_http_upstream.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/http/ngx_http_upstream.c	Sun Sep 13 06:28:17 2009 +0000
+++ b/src/http/ngx_http_upstream.c	Sun Sep 13 13:45:32 2009 +0000
@@ -1815,6 +1815,7 @@
         r->valid_unparsed_uri = 0;
 
         ngx_http_internal_redirect(r, uri, &args);
+        ngx_http_finalize_request(r, NGX_DONE);
         return NGX_DONE;
     }