fix mime type for absolute index

This commit is contained in:
Igor Sysoev 2007-10-23 14:10:38 +00:00
parent 3bb547dfdf
commit 704bafb5c2

View File

@ -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++;