diff src/http/ngx_http_upstream.c @ 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 5ddc9458e4bb
children d430c6ab1c99
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;
     }