summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2008-12-24 07:14:01 +0000
committerIgor Sysoev <igor@sysoev.ru>2008-12-24 07:14:01 +0000
commit195860b74d04078a5e093439c7dbf5cf56e63966 (patch)
tree4285b20940469fd26e5d8a000ff85e6d9e48f918
parentd8e54adb6d6b6ee253de5f16006f94e2f88264e5 (diff)
downloadnginx-195860b74d04078a5e093439c7dbf5cf56e63966.tar.gz
nginx-195860b74d04078a5e093439c7dbf5cf56e63966.tar.bz2
flush variable values in try_files
-rw-r--r--src/http/ngx_http_core_module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
index e28197356..a7a5cdb4c 100644
--- 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_request_t *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_request_t *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;