changeset 2424:46d11bff21ef

flush variable values in try_files
author Igor Sysoev <igor@sysoev.ru>
date Wed, 24 Dec 2008 07:14:01 +0000
parents 5bdb1591d37f
children 3d60d55b9ad0
files src/http/ngx_http_core_module.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/http/ngx_http_core_module.c
+++ b/src/http/ngx_http_core_module.c
@@ -1082,7 +1082,6 @@ ngx_http_core_try_files_phase(ngx_http_r
 
             e.ip = tf->lengths->elts;
             e.request = r;
-            e.flushed = 1;
 
             /* 1 is for terminating '\0' as in static names */
             len = 1;
@@ -1127,6 +1126,7 @@ ngx_http_core_try_files_phase(ngx_http_r
         } else {
             e.ip = tf->values->elts;
             e.pos = name;
+            e.flushed = 1;
 
             while (*(uintptr_t *) e.ip) {
                 code = *(ngx_http_script_code_pt *) e.ip;