summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-03-19 13:42:27 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-03-19 13:42:27 +0000
commitb03aa7fcc23539f5664452acf541329bb81d1eec (patch)
tree86074f2bb97b99376f90f4e3fe774748dc8f0b74
parent2c7cb55ac1e94a0c165835933dcbe86d3904f623 (diff)
downloadnginx-b03aa7fcc23539f5664452acf541329bb81d1eec.tar.gz
split args in a try_files fallback
-rw-r--r--src/http/ngx_http_core_module.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
index 43d464418..beb066692 100644
--- a/src/http/ngx_http_core_module.c
+++ b/src/http/ngx_http_core_module.c
@@ -1037,7 +1037,7 @@ ngx_http_core_try_files_phase(ngx_http_request_t *r,
{
size_t len, root, alias, reserve, allocated;
u_char *p, *name;
- ngx_str_t path;
+ ngx_str_t path, args;
ngx_uint_t test_dir;
ngx_http_try_file_t *tf;
ngx_open_file_info_t of;
@@ -1146,7 +1146,9 @@ ngx_http_core_try_files_phase(ngx_http_request_t *r,
(void) ngx_http_named_location(r, &path);
} else {
- (void) ngx_http_internal_redirect(r, &path, NULL);
+ ngx_http_split_args(r, &path, &args);
+
+ (void) ngx_http_internal_redirect(r, &path, &args);
}
return NGX_OK;