From 5343bf3221c66aaef315a466931c7b2c2ac5b425 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 30 May 2011 14:24:17 +0000 Subject: revert r3875 since now map uses case sensetive regexes by default --- src/http/modules/ngx_http_map_module.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/http/modules') diff --git a/src/http/modules/ngx_http_map_module.c b/src/http/modules/ngx_http_map_module.c index 8ca3fa314..6b724b304 100644 --- a/src/http/modules/ngx_http_map_module.c +++ b/src/http/modules/ngx_http_map_module.c @@ -526,6 +526,12 @@ 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; -- cgit