Mercurial > hg > nginx
comparison src/core/ngx_hash.c @ 597:9262f520ce21 release-0.3.20
nginx-0.3.20-RELEASE import
*) Bugfix: in SSI handling.
*) Bugfix: the ngx_http_memcached_module did not support the keys in
the "/usr?args" form.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 11 Jan 2006 15:26:57 +0000 |
parents | ebc68d8ca496 |
children | 7a16e281c01f |
comparison
equal
deleted
inserted
replaced
596:0381e6d3aa70 | 597:9262f520ce21 |
---|---|
751 /* exact hash */ | 751 /* exact hash */ |
752 | 752 |
753 k = 0; | 753 k = 0; |
754 | 754 |
755 for (i = 0; i < key->len; i++) { | 755 for (i = 0; i < key->len; i++) { |
756 key->data[i] = ngx_tolower(key->data[i]); | 756 if (!(flags & NGX_HASH_READONLY_KEY)) { |
757 key->data[i] = ngx_tolower(key->data[i]); | |
758 } | |
757 k = ngx_hash(k, key->data[i]); | 759 k = ngx_hash(k, key->data[i]); |
758 } | 760 } |
759 | 761 |
760 k %= ha->hsize; | 762 k %= ha->hsize; |
761 | 763 |