comparison src/http/modules/ngx_http_map_module.c @ 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 d620f497c50f
comparison
equal deleted inserted replaced
3929:fa4612bfb9fa 3930:ace14fd91086
524 value[0].len--; 524 value[0].len--;
525 value[0].data++; 525 value[0].data++;
526 526
527 ngx_memzero(&rc, sizeof(ngx_regex_compile_t)); 527 ngx_memzero(&rc, sizeof(ngx_regex_compile_t));
528 528
529 if (value[0].data[0] == '*') {
530 value[0].len--;
531 value[0].data++;
532 rc.options = NGX_REGEX_CASELESS;
533 }
534
529 rc.pattern = value[0]; 535 rc.pattern = value[0];
530 rc.err.len = NGX_MAX_CONF_ERRSTR; 536 rc.err.len = NGX_MAX_CONF_ERRSTR;
531 rc.err.data = errstr; 537 rc.err.data = errstr;
532 538
533 regex->regex = ngx_http_regex_compile(ctx->cf, &rc); 539 regex->regex = ngx_http_regex_compile(ctx->cf, &rc);