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
+++ b/src/http/ngx_http_upstream.c
@@ -1815,6 +1815,7 @@ ngx_http_upstream_process_headers(ngx_ht
         r->valid_unparsed_uri = 0;
 
         ngx_http_internal_redirect(r, uri, &args);
+        ngx_http_finalize_request(r, NGX_DONE);
         return NGX_DONE;
     }