Mercurial > hg > nginx
diff src/http/modules/ngx_http_map_module.c @ 3929:fa4612bfb9fa
change ngx_http_map_find(): use case sensitive regexes
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 30 May 2011 12:36:17 +0000 |
parents | cb2432ed17fd |
children | ace14fd91086 |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_map_module.c +++ b/src/http/modules/ngx_http_map_module.c @@ -111,7 +111,6 @@ ngx_http_map_variable(ngx_http_request_t size_t len; ngx_str_t val; - ngx_uint_t key; ngx_http_variable_value_t *value; ngx_log_debug0(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, @@ -127,9 +126,7 @@ ngx_http_map_variable(ngx_http_request_t len--; } - key = ngx_hash_strlow(val.data, val.data, len); - - value = ngx_http_map_find(r, &map->map, key, val.data, len, &val); + value = ngx_http_map_find(r, &map->map, &val); if (value == NULL) { value = map->default_value;