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	Wed Dec 24 06:11:04 2008 +0000
+++ b/src/http/ngx_http_core_module.c	Wed Dec 24 07:14:01 2008 +0000
@@ -1082,7 +1082,6 @@
 
             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 @@
         } 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;