summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http_config.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2002-12-10 18:05:12 +0000
committerIgor Sysoev <igor@sysoev.ru>2002-12-10 18:05:12 +0000
commitb0869056bb4385a6b30fc58c653716c45ed33916 (patch)
tree8522c66320ee59e4671f23058a971d9556d1a6a0 /src/http/ngx_http_config.c
parentef259d140f378be8d7936d04038354a93cccb461 (diff)
downloadnginx-b0869056bb4385a6b30fc58c653716c45ed33916.tar.gz
nginx-b0869056bb4385a6b30fc58c653716c45ed33916.tar.bz2
nginx-0.0.1-2002-12-10-21:05:12 import
Diffstat (limited to '')
-rw-r--r--src/http/ngx_http_config.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/http/ngx_http_config.c b/src/http/ngx_http_config.c
index ab23a11ce..36037c6cf 100644
--- a/src/http/ngx_http_config.c
+++ b/src/http/ngx_http_config.c
@@ -100,13 +100,16 @@ ngx_http_write_filter_set_stub(ngx_pool_t *pool, ngx_http_module_t **modules)
ngx_http_index_set_stub(ngx_pool_t *pool, ngx_http_module_t **modules)
{
int i;
+ ngx_str_t index;
ngx_command_t *cmd;
for (i = 0; modules[i]; i++) {
if (modules[i] == &ngx_http_index_module) {
for (cmd = modules[i]->commands; cmd->name; cmd++) {
if (strcmp(cmd->name, "index") == 0) {
- cmd->set(pool, ngx_loc_conf[i], "index.html");
+ index.len = sizeof("index.html") - 1;
+ index.data = "index.html";
+ cmd->set(pool, ngx_loc_conf[i], &index);
}
}
}