aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/ngx_hash.c')
-rw-r--r--src/core/ngx_hash.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/ngx_hash.c b/src/core/ngx_hash.c
index abd2cf173..c39395c7b 100644
--- a/src/core/ngx_hash.c
+++ b/src/core/ngx_hash.c
@@ -390,9 +390,7 @@ found:
elt->value = names[n].value;
elt->len = (u_char) names[n].key.len;
- for (i = 0; i < names[n].key.len; i++) {
- elt->name[i] = ngx_tolower(names[n].key.data[i]);
- }
+ ngx_strlow(elt->name, names[n].key.data, names[n].key.len);
test[key] = (u_short) (test[key] + NGX_HASH_ELT_SIZE(&names[n]));
}