diff options
author | Igor Sysoev <igor@sysoev.ru> | 2008-08-04 10:07:00 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2008-08-04 10:07:00 +0000 |
commit | 777b019c7338b6a67f639bb86b90711055709c53 (patch) | |
tree | 9bac0517c1d4e6d1690d2738284c89b382eec38e /src/http/ngx_http_variables.c | |
parent | eb3e4c8be00d6353b5e545a75f9abda0b154585c (diff) | |
download | nginx-777b019c7338b6a67f639bb86b90711055709c53.tar.gz nginx-777b019c7338b6a67f639bb86b90711055709c53.zip |
ngx_strlow()
Diffstat (limited to 'src/http/ngx_http_variables.c')
-rw-r--r-- | src/http/ngx_http_variables.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/http/ngx_http_variables.c b/src/http/ngx_http_variables.c index e014170a0..b41572202 100644 --- a/src/http/ngx_http_variables.c +++ b/src/http/ngx_http_variables.c @@ -277,9 +277,7 @@ ngx_http_add_variable(ngx_conf_t *cf, ngx_str_t *name, ngx_uint_t flags) return NULL; } - for (i = 0; i < name->len; i++) { - v->name.data[i] = ngx_tolower(name->data[i]); - } + ngx_strlow(v->name.data, name->data, name->len); v->set_handler = NULL; v->get_handler = NULL; @@ -344,9 +342,7 @@ ngx_http_get_variable_index(ngx_conf_t *cf, ngx_str_t *name) return NGX_ERROR; } - for (i = 0; i < name->len; i++) { - v->name.data[i] = ngx_tolower(name->data[i]); - } + ngx_strlow(v->name.data, name->data, name->len); v->set_handler = NULL; v->get_handler = NULL; |