mirror of
https://github.com/nginx/nginx.git
synced 2024-12-18 21:23:36 -06:00
map tests values in low case only, so caseless regex has no sense
This commit is contained in:
parent
c9d671cd81
commit
921ac21acf
@ -529,12 +529,6 @@ found:
|
|||||||
|
|
||||||
ngx_memzero(&rc, sizeof(ngx_regex_compile_t));
|
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.pattern = value[0];
|
||||||
rc.err.len = NGX_MAX_CONF_ERRSTR;
|
rc.err.len = NGX_MAX_CONF_ERRSTR;
|
||||||
rc.err.data = errstr;
|
rc.err.data = errstr;
|
||||||
|
Loading…
Reference in New Issue
Block a user