Mercurial > hg > nginx
comparison src/http/modules/ngx_http_map_module.c @ 3874:cb2432ed17fd
map tests values in low case only, so caseless regex has no sense
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 21 Mar 2011 15:18:59 +0000 |
parents | 83cd1910329c |
children | fa4612bfb9fa |
comparison
equal
deleted
inserted
replaced
3873:eae4a59ae59a | 3874:cb2432ed17fd |
---|---|
527 value[0].len--; | 527 value[0].len--; |
528 value[0].data++; | 528 value[0].data++; |
529 | 529 |
530 ngx_memzero(&rc, sizeof(ngx_regex_compile_t)); | 530 ngx_memzero(&rc, sizeof(ngx_regex_compile_t)); |
531 | 531 |
532 if (value[0].data[0] == '*') { | |
533 value[0].len--; | |
534 value[0].data++; | |
535 rc.options = NGX_REGEX_CASELESS; | |
536 } | |
537 | |
538 rc.pattern = value[0]; | 532 rc.pattern = value[0]; |
539 rc.err.len = NGX_MAX_CONF_ERRSTR; | 533 rc.err.len = NGX_MAX_CONF_ERRSTR; |
540 rc.err.data = errstr; | 534 rc.err.data = errstr; |
541 | 535 |
542 regex->regex = ngx_http_regex_compile(ctx->cf, &rc); | 536 regex->regex = ngx_http_regex_compile(ctx->cf, &rc); |