# HG changeset patch # User Igor Sysoev # Date 1230102841 0 # Node ID 46d11bff21ef1d36ed95ef5b530312f8b0a1d90b # Parent 5bdb1591d37f676183864de47da0670fb1b49170 flush variable values in try_files diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c --- 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;