# HG changeset patch # User Igor Sysoev # Date 1283436118 0 # Node ID 9da3a04fc845e02554bdc1fe96374647b6c9a864 # Parent 6cde134924331eaf3903fdae4676727abfa749bf gzip_disable compiled always the first pattern only diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c --- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -4400,7 +4400,7 @@ ngx_http_gzip_disable(ngx_conf_t *cf, ng return NGX_CONF_ERROR; } - rc.pattern = value[1]; + rc.pattern = value[i]; rc.options = NGX_REGEX_CASELESS; if (ngx_regex_compile(&rc) != NGX_OK) {