Mercurial > hg > nginx-quic
changeset 1600:1d659775325a
fix mime type for absolute index
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 23 Oct 2007 14:10:38 +0000 |
parents | 51b401063046 |
children | cba2bb1796e4 |
files | src/http/modules/ngx_http_index_module.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_index_module.c +++ b/src/http/modules/ngx_http_index_module.c @@ -503,6 +503,10 @@ ngx_http_index_set_index(ngx_conf_t *cf, ilcf->max_index_len = index->name.len; } + if (index->name.data[0] == '/') { + continue; + } + /* include the terminating '\0' to the length to use ngx_copy() */ index->name.len++;