]> git.kaiwu.me - nginx.git/commitdiff
map tests values in low case only, so caseless regex has no sense
authorIgor Sysoev <igor@sysoev.ru>
Mon, 21 Mar 2011 15:18:59 +0000 (15:18 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Mon, 21 Mar 2011 15:18:59 +0000 (15:18 +0000)
src/http/modules/ngx_http_map_module.c

index 9dc0ef6fcceb45af778d038485f716d8b4f85a32..5aa23eba31a2905283b4743f2f98c567422e64cd 100644 (file)
@@ -529,12 +529,6 @@ found:
 
         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;