Mercurial > hg > nginx
comparison src/http/ngx_http_core_module.c @ 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 | 1374ffff9635 |
children | 91e287d78d90 |
comparison
equal
deleted
inserted
replaced
2578:c7bdd722532f | 2579:67fea87a6652 |
---|---|
1035 ngx_http_core_try_files_phase(ngx_http_request_t *r, | 1035 ngx_http_core_try_files_phase(ngx_http_request_t *r, |
1036 ngx_http_phase_handler_t *ph) | 1036 ngx_http_phase_handler_t *ph) |
1037 { | 1037 { |
1038 size_t len, root, alias, reserve, allocated; | 1038 size_t len, root, alias, reserve, allocated; |
1039 u_char *p, *name; | 1039 u_char *p, *name; |
1040 ngx_str_t path; | 1040 ngx_str_t path, args; |
1041 ngx_uint_t test_dir; | 1041 ngx_uint_t test_dir; |
1042 ngx_http_try_file_t *tf; | 1042 ngx_http_try_file_t *tf; |
1043 ngx_open_file_info_t of; | 1043 ngx_open_file_info_t of; |
1044 ngx_http_script_code_pt code; | 1044 ngx_http_script_code_pt code; |
1045 ngx_http_script_engine_t e; | 1045 ngx_http_script_engine_t e; |
1144 | 1144 |
1145 if (path.data[0] == '@') { | 1145 if (path.data[0] == '@') { |
1146 (void) ngx_http_named_location(r, &path); | 1146 (void) ngx_http_named_location(r, &path); |
1147 | 1147 |
1148 } else { | 1148 } else { |
1149 (void) ngx_http_internal_redirect(r, &path, NULL); | 1149 ngx_http_split_args(r, &path, &args); |
1150 | |
1151 (void) ngx_http_internal_redirect(r, &path, &args); | |
1150 } | 1152 } |
1151 | 1153 |
1152 return NGX_OK; | 1154 return NGX_OK; |
1153 } | 1155 } |
1154 | 1156 |