Mercurial > hg > nginx
diff src/http/ngx_http.c @ 2135:8c6521eedf84
ngx_strlow()
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 04 Aug 2008 10:07:00 +0000 |
parents | 2a92804f4109 |
children | fb3b084e7d42 |
line wrap: on
line diff
--- a/src/http/ngx_http.c Mon Aug 04 09:14:30 2008 +0000 +++ b/src/http/ngx_http.c Mon Aug 04 10:07:00 2008 +0000 @@ -1259,7 +1259,7 @@ ngx_http_add_names(ngx_conf_t *cf, ngx_http_core_srv_conf_t *cscf, ngx_http_conf_in_addr_t *in_addr) { - ngx_uint_t i, n; + ngx_uint_t i; ngx_http_server_name_t *server_names, *name; if (in_addr->names.elts == NULL) { @@ -1275,10 +1275,8 @@ for (i = 0; i < cscf->server_names.nelts; i++) { - for (n = 0; n < server_names[i].name.len; n++) { - server_names[i].name.data[n] = - ngx_tolower(server_names[i].name.data[n]); - } + ngx_strlow(server_names[i].name.data, server_names[i].name.data, + server_names[i].name.len); ngx_log_debug1(NGX_LOG_DEBUG_HTTP, cf->log, 0, "name: %V", &server_names[i].name);