Mercurial > hg > nginx
changeset 3930:ace14fd91086
revert r3875 since now map uses case sensetive regexes by default
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 30 May 2011 14:24:17 +0000 |
parents | fa4612bfb9fa |
children | c8884c8f7c74 |
files | src/http/modules/ngx_http_map_module.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_map_module.c Mon May 30 12:36:17 2011 +0000 +++ b/src/http/modules/ngx_http_map_module.c Mon May 30 14:24:17 2011 +0000 @@ -526,6 +526,12 @@ ngx_memzero(&rc, sizeof(ngx_regex_compile_t)); + if (value[0].data[0] == '*') { + value[0].len--; + value[0].data++; + rc.options = NGX_REGEX_CASELESS; + } + rc.pattern = value[0]; rc.err.len = NGX_MAX_CONF_ERRSTR; rc.err.data = errstr;