use lowcase only hostname

This commit is contained in:
Igor Sysoev 2009-10-21 17:04:13 +00:00
parent cd8b43cde7
commit 42b72993c5

View File

@ -204,7 +204,7 @@ ngx_init_cycle(ngx_cycle_t *old_cycle)
return NULL;
}
ngx_memcpy(cycle->hostname.data, hostname, cycle->hostname.len);
ngx_strlow(cycle->hostname.data, (u_char *) hostname, cycle->hostname.len);
for (i = 0; ngx_modules[i]; i++) {