Skip to content

Commit

Permalink
Merge pull request alibaba#827 from chobits/master
Browse files Browse the repository at this point in the history
Fixed config parsing of the last try_files parameter.
  • Loading branch information
nanfenglei22 committed Nov 30, 2016
2 parents 40230b2 + 4889d4d commit 1a6238d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/http/ngx_http_core_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -5316,7 +5316,8 @@ ngx_http_core_try_files(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
tf[i].name = value[i + 1];

if (tf[i].name.len > 0
&& tf[i].name.data[tf[i].name.len - 1] == '/')
&& tf[i].name.data[tf[i].name.len - 1] == '/'
&& i + 2 < cf->args->nelts)
{
tf[i].test_dir = 1;
tf[i].name.len--;
Expand Down

0 comments on commit 1a6238d

Please sign in to comment.