mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
fix mime type for absolute index
This commit is contained in:
parent
3bb547dfdf
commit
704bafb5c2
@ -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;
|
ilcf->max_index_len = index->name.len;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (index->name.data[0] == '/') {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
/* include the terminating '\0' to the length to use ngx_copy() */
|
/* include the terminating '\0' to the length to use ngx_copy() */
|
||||||
index->name.len++;
|
index->name.len++;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user