comparison src/core/ngx_hash.c @ 146:36af50a5582d NGINX_0_3_20

nginx 0.3.20 *) Bugfix: in SSI handling. *) Bugfix: the ngx_http_memcached_module did not support the keys in the "/usr?args" form.
author Igor Sysoev <http://sysoev.ru>
date Wed, 11 Jan 2006 00:00:00 +0300
parents e1c6ac408b68
children 3314be145cb9
comparison
equal deleted inserted replaced
145:85a84f8da62b 146:36af50a5582d
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