gzip_disable compiled always the first pattern only

This commit is contained in:
Igor Sysoev 2010-09-02 14:01:58 +00:00
parent 4db3b3e2c4
commit 31e6fc82cc

View File

@ -4400,7 +4400,7 @@ ngx_http_gzip_disable(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
return NGX_CONF_ERROR;
}
rc.pattern = value[1];
rc.pattern = value[i];
rc.options = NGX_REGEX_CASELESS;
if (ngx_regex_compile(&rc) != NGX_OK) {