diff options
author | Igor Sysoev <igor@sysoev.ru> | 2007-10-23 14:10:38 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2007-10-23 14:10:38 +0000 |
commit | 704bafb5c218e01465c765f95edc27bf0ad1f4aa (patch) | |
tree | 4d24c40cf72b6f160fcc280117e3ddcdc8880bc5 /src | |
parent | 3bb547dfdf1aa1576c9bd769fc8f520b5d0ab62c (diff) | |
download | nginx-704bafb5c218e01465c765f95edc27bf0ad1f4aa.tar.gz nginx-704bafb5c218e01465c765f95edc27bf0ad1f4aa.zip |
fix mime type for absolute index
Diffstat (limited to 'src')
-rw-r--r-- | src/http/modules/ngx_http_index_module.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/http/modules/ngx_http_index_module.c b/src/http/modules/ngx_http_index_module.c index 6f81a49cf..bad1de3b0 100644 --- 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, ngx_command_t *cmd, void *conf) 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++; |