From: Igor Sysoev Date: Tue, 23 Oct 2007 14:10:38 +0000 (+0000) Subject: fix mime type for absolute index X-Git-Tag: release-0.6.16~6 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=704bafb5c218e01465c765f95edc27bf0ad1f4aa;p=nginx.git fix mime type for absolute index --- 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++;