Mercurial > hg > nginx
changeset 2579:67fea87a6652
split args in a try_files fallback
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 19 Mar 2009 13:42:27 +0000 |
parents | c7bdd722532f |
children | 684ca3b0ae14 |
files | src/http/ngx_http_core_module.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/ngx_http_core_module.c Thu Mar 19 13:41:29 2009 +0000 +++ b/src/http/ngx_http_core_module.c Thu Mar 19 13:42:27 2009 +0000 @@ -1037,7 +1037,7 @@ { 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 @@ (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;